My guess would be that the problem is in the line
$input[$il] =~ s/\\protect\\customizeref{$same<\/xref>/\\protect\\cust +omizeref{$dx1}{Figures}{}/g;
$same is populated from the first match in the line but you expect it to match every occurence in the line. Unless it is the same every time, it will only fit the first item.
In reply to Re: Multi replace in a Line
by hdb
in thread Multi replace in a Line
by veera
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |