If I have:
<Directory /> words allow bus </Directory>
Is there a regex that can replace allow with something else and keep the other words and the block intact?
So it should look like:
<Directory /> words not bus </Directory>
<Directory /> words bus </Directory>
because I will replace the word with something else or take it out. I've tried a regex like this:
and replace it with
\1\n not \2, but it replaces allow and deletes the second half of the block which I don't want.
So is there a regex that can replace a word in a block and keep the block intact?