Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

URL validation - regular expression

843833May 18 2009 — edited May 19 2009
Hello,

I searched but didn´t find.

I need a simple method: isValidUrl

I tried "new URL(url)", getting error, but it allows a simple url with space... I tried too org.apache.validator but it brought me problems with related .jar...

I got one validation for e-mail, that work very well using regex. Does anyone have URL validation using regular expression?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2009
Added on May 18 2009
2 comments
609 views