Hi James, Thanks, I will try your suggestion and let you know if it meets my requirements.
Ike -----Original Message----- From: James Black [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 2:06 PM To: Tomcat Users List Subject: Re: URL validation Ikonne, Ike wrote: >Hi Steffen, > >Thanks, new URL(url) doesn't work consistently. I have tried it, >one can throw in an url that doesn't meet RFC 1738 but URL(url) will >not catch it. > > You could try regular expressions. Here is a relatively simple one: (?:ftp\:\\\\|http\:\\\\|mailto\:\\\\)?(\w+\@)?(www\.)?\w+(\.\w+)+(\:\d+)? -- "Love is mutual self-giving that ends in self-recovery." Fulton Sheen James Black [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
