s/(?<=12345)99(?=1234)/$variable/g;
Of course no /g is needed when only one instance should be replaced.
In reply to Re: Specific substitution in regular expressions
by moritz
in thread Specific substitution in regular expressions
by cstrong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |