good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Problem with a text-parsing regexby ibm1620 (Hermit) |
on May 07, 2022 at 21:50 UTC ( [id://11143656]=note: print w/replies, xml ) | Need Help?? |
Thank you -- I think you've nailed it.
I'd never thought about using a character-at-a-time approach as you did to handle the first problem. I just assumed it would be much less efficient than trying to use [[:word:]]+, for example. But there's probably no basis for that assumption. (Premature optimization!) That could make it easier in the future for me to tackle these complicated scenarios. I use v5.34.1, and will take a look at regex_sets.
In Section
Seekers of Perl Wisdom
|
|