Hi, would it be possible to match a chunk in a file, and then replace only a portion (a phrase) of it?
For example:
$a = "<start>op3 and op and op2</start>"
I need to do things sequentially:
1. Match <start>.+?</start>
2. Replace "op" contained with "op1"
The end result should look like:
$a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.