Welcome to the Monastery | |
PerlMonks |
Re^5: regex search for words with one digitby AnomalousMonk (Archbishop) |
on Sep 23, 2020 at 04:47 UTC ( [id://11122108]=note: print w/replies, xml ) | Need Help?? |
Ah — I completely missed this point! Maybe a bit of occasional cargo-culting isn't entirely bad. :) I still think I would use (?<! \S) (?! \S) as boundary assertions instead of \b though, to properly handle "words" like 'a1-b1'. Anon gives no hint that such things may appear in the data, but an abundance of caution inclines me this way. More reflex defensiveness I guess. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|