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

Re: Match-order

  •  05-03-2007, 11:56 AM

    Re: Match-order

    You may achieve what you want using lookahead (provided your regex dialect understands it):

    ^(?=.*abc)(?=.*xyz) 
    will match if both words are found. You won't have capturing groups with the found words though.
    Filed under:
View Complete Thread