Got more questions? Find advice on:
ASP
|
SQL
|
XML
|
Windows
in
Construction Advice (forum)
Regular Expressions (group)
(Entire Site)
Search
Welcome to RegexAdvice
Sign in
|
Join
|
Help
Home
Blogs
Forums
Photos
Downloads
RegexAdvice
»
Regular Expressions
»
Construction Advice
»
Re: Help needed in modifying reg exp.
Help needed in modifying reg exp.
Last post 03-10-2010, 6:21 AM by
killahbeez
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
03-10-2010, 2:36 AM
60635
Alokb
Joined on 03-10-2010
Posts 1
Help needed in modifying reg exp.
Reply
Quote
Hello Friends,
I have created a regular expression: \s*https?\:\/\/\w*\d\w*\.\w*\.(ru|cn)
to match this kind of strings: http://test4.valuedflower.ru/
This expression works fine.
But now i want to make changes in regular expression so that it should not catch this kind of strings: http://www3.valuedflower.ru/
i.e if there is www3 after http:// in string, then the string should not get caught.
Any help appreciated.
Alok bhatnagar
Report abuse
03-10-2010, 6:21 AM
60642
in reply to
60635
killahbeez
Joined on 07-26-2007
Bucuresti, Romania
Posts 329
Re: Help needed in modifying reg exp.
Reply
Quote
\s*https?\:\/\/(?!www3)\w*\d\w*\.\w*\.(ru|cn)
http://portal-vreme.ro
Report abuse
Got more questions? Find advice on:
ASP
|
SQL
|
XML
|
Windows
|
About regexadvice.com
|
Privacy Policy
|
ASP.NET Tutorials
|
Advertise
Copyright ©2005 DevAdvice.com