Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Help needed in modifying reg exp.

Last post 03-10-2010, 6:21 AM by killahbeez. 1 replies.
Sort Posts: Previous Next
  •  03-10-2010, 2:36 AM 60635

    Help needed in modifying reg exp.

    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
  •  03-10-2010, 6:21 AM 60642 in reply to 60635

    Re: Help needed in modifying reg exp.

    \s*https?\:\/\/(?!www3)\w*\d\w*\.\w*\.(ru|cn)
    http://portal-vreme.ro
View as RSS news feed in XML