in reply to Re^2: Parsing Issue while using Variable name in Pattern
in thread Parsing Issue while using Variable name in Pattern
\b Match a word boundarySo, the "\b" will match "xxyy" if the following character is NOT [a-zA-Z0-9].A word boundary (\b ) is a spot between two characters that has a \w on one side of it and a \W on the other side of it (in either order), counting the imaginary characters off the beginning and end of the string as matching a \W .
However, if the terminating character in the match is NOT a "word" character, as in your case - the terminating character is ")", then the "\b" expects the NEXT character to be a "word".
Hope this makes sense. If not, please experiment.
“PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil perpetrated by skilled but perverted professionals.”
― Jon Ribbens
|
|---|