fun with perl:
Note: s modifier is required in the regexpsubstr($_, pos() - 3, 3) =~ tr/FSTRE\\/|^&~\\/d while m/\G.*?\\[FSTRE]\\/gs;
Update: regexp was simplified
substr($_, pos() - 3, 3) =~ tr/FSTRE\\/|^&~\\/d while m/\\[FSTRE]\\/g;
In reply to Re^2: Pattern Matching, left-to-right
by ccn
in thread Pattern Matching, left-to-right
by TrekNoid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |