Regarding URLs

Hi All,

I need a small help. I have some urls in the database. The urls are in this pattern

http://username.publisher.hop.clickbank.net.

Ex: http://hcb25.dogtrain12.hop.clickbank.net/

here hcb25 is username,dogtrain12 is publisher

How to test all the urls to be of this pattern. Is there any class to perform this check.

I apologize for my poor English

thanks in advance

Regards,

Rama devi

[453 byte] By [RamaDevia] at [2007-11-27 6:08:28]
# 1
Java provides a regexp API in the String class. Checkout the [url= http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#matches(java.lang.String)]String#matches() API[/url].
BalusCa at 2007-7-12 17:10:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
user regex to match the string for details refer to class java.util.regex.Pattern
abhishekpandey_y2ka at 2007-7-12 17:10:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...