perl -le '$_="brad123bill"; print; s/brad(.+?)bill/brian$1bob/; print' brad123bill brian123bob
_________
broquaint
In reply to Re: Replacing text - problem with $1 variable
by broquaint
in thread Replacing text - problem with $1 variable
by kr00z3r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |