in reply to Prog. Perl 3rd Ed. Regex Question
What the Book's RE is matching is:
Word Boundry, followed by a '1 or more character' word
Followed by space
Followed by a word-boundry
Followed by the Same word
Your RE is missing the SPACE at the end of the word found, and are trying to capture the word boundry '\b' inside the parens, which is meaningless.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Prog. Perl 3rd Ed. Regex Question
by makar (Novice) on Feb 13, 2004 at 05:43 UTC | |
by davido (Cardinal) on Feb 13, 2004 at 06:02 UTC |