Quote:
Originally Posted by Colin Legg
Hi,
Here's one pattern (a negative lookahead) which will exclude dog:
Code:
.Pattern = "(?!dog\b)\b\w+"
|
A lovely one. I missed the lookahead part when reading online tutorials of regexp.
But just wanna ask why
\b after dog is needed? To state the pattern ends by "dog" before the word boundary "\b"? And the \b outside before \w is used for what?