As long as there's a non-Y character preceding, remove any string of Xs.$string =~ s/(?<=[^Y])X+//g;
In reply to Re: Re: Variable-width negative lookbehind
by Roy Johnson
in thread Variable-width negative lookbehind
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |