Yeah I've been trying to implement a look-ahead assertion, but it's not working. I been trying something like this...
$string =~ s/\;(?!\;$)//g;
I thought it would find all occurrences of ; but not the last one followed by end-of-line, but it's not working. There's something I don't understand.
In reply to Re^2: Quick regex substitution question
by jmmach80
in thread Quick regex substitution question
by jmmach80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |