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 in java to perform this check or else guideme to achieve this.

I apologize for my poor English

thanks in advance

Regards,

Rama devi

[493 byte] By [RamaDevia] at [2007-11-27 6:08:32]
# 1
Sounds like a job for a regular expression.
quittea at 2007-7-12 17:11:02 > top of Java-index,Java Essentials,Java Programming...
# 2
Here's a good site for information about regular expressions: http://www.regular-expressions.info/
Hippolytea at 2007-7-12 17:11:02 > top of Java-index,Java Essentials,Java Programming...