I've often thought that a separator character would be useful in regex modifier strings to improve readability. Literal numbers have the _ (underscore) for this reason, and I don't see why this separator cannot be "overloaded" for use in regexes.
E.g., rather than
m{ ... }xmsgco
or
s{ ... }{...}xmsgeepo
one might write
m{ ... }xms_gc_o
or
s{ ... }{...}xms_geep_o
(just to fabricate some extreme cases). Of course, my own personal practice is always to use an /xms modifier tail, so a separator would always fall after this mandatory group if there were additional modifiers.
Give a man a fish: <%-{-{-{-<
In reply to Re: [OT - Separator character]: Best Practice: Order of regex modifiers?
by AnomalousMonk
in thread Best Practice: Order of regex modifiers?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |