Your second file seems to have line breaks ("\n") in the middle of the {[%tqu...]} strings, and the dot does not match this character unless you use the /s modifier. Try s/$regex/$subst/sgi; instead
Edit: except .* with /s will be far too greedy. [^]]* or .*? would work better
In reply to Re: Substitution don't work with a special inputfile
by Eily
in thread Substitution don't work with a special inputfile
by OldChamp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |