I'm trying to match a string which would start with http://, 
 then a character string where there is one one or more 
 instances of "%", followed by one instance of ".com", i.e. 
 http://www.%55.com
 
 Here is my current pattern:
 http://.*%+.*(\.com)
 
 However, if there are two or more instances of ".com" in the 
 string, it matches on  the last ".com".  This is a test string that should
not match, but does:
 
http://www.test.com/%7Encbath/";>http://www.test.com/

In this case, I want the match to fail completely, because there is another
".com" in the string.

I've tried various combinations, and I obviously suck at regexes.  Help?

Andrew

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to