in reply to Re: Regular Expression, substitution
in thread Regular Expression, substitution
\b matches a word boundary. It's a zero width anchor. It works like qr/(?<=\w)(?=\W)|(?<=\W)(?=\w)/ which is likely to blow your mind unless you are comfortable with look around matches.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regular Expression, substitution
by AnomalousMonk (Archbishop) on Apr 06, 2016 at 05:10 UTC | |
|
Re^3: Regular Expression, substitution
by marinersk (Priest) on Apr 06, 2016 at 04:47 UTC |