|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Answer: How do i find $a and replace it with $b when it's preceded by $c? |
| ( #17850=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > regular expressions > How do i find $a and replace it with $b when it's preceded by $c? contributed by nuance
A postivive look behind clause in the regular expression will do what you want.
produces moobaryou in $d
|
|
||||||||||||||||||