Is there a way to make ' ' mean \s* in Perl regular expressions?
This would greatly improve the readability of many regular expressions I
write, and when I write a single literal space in my regexes I almost
always mean \s*, so is there a "mode" that enables this, like /s to make .
match newlines, etc.? A cursory read through perlre didn't give anything,
but maybe I missed something or maybe there's a different way to achieve
this?
No comments:
Post a Comment