in reply to Re: search and repalce excluding delimeter
in thread search and repalce excluding delimeter
The following is cleaner.
$line =~ s{/main/[^,;"\s]*}{%I%}g;
It's a little different, but it'll behave the same if /main/ is always followed by one of the delimiters.
|
|---|