(I also prefer the builtin not-whitespace char, rather than negating the class)./(?:^|\S)XY/ # or /(?<!\s)XY/
In reply to Re^2: Negating a leading whitespace
by Roy Johnson
in thread Negating a leading whitespace
by icg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |