in reply to RE: Regular Expression Question - Having problems with anchors

This is because 'Base Functionality' includes 'Functional' which is in the first list. You could reorder the if and elsif tests, but other problems of a similar kind are likely occur later. Instead you can anchor on word boundaries with \b, as in ...|\bFunctional\b|...

Phil

  • Comment on Re^2: Regular Expression Question - Having problems with anchors

Replies are listed 'Best First'.
Re^3: Regular Expression Question - Having problems with anchors
by sauoq (Abbot) on Sep 30, 2005 at 21:59 UTC

    You can't tell that from the code provided and it is quite possibly not the issue given that he claims he tried anchors outside the parens.

    -sauoq
    "My two cents aren't worth a dime.";