At some point adding whitespace
leads
to
reduced
clarity
and
slower
comprehension
.
Two things would clean those particular lines up in my view - adding /x as you suggest, and using a character set for the single character delimiters:
my $pattern= "([,|:>] | \\]\\[ | _\\|_)"; my @splitted= split /$pattern/x, $text;
In reply to Re^3: regex trouble
by GrandFather
in thread regex trouble
by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |