I think I burned out, and therefore I do not see a clear mistake. Anyway, I want the following regular expression:
#BIZ [. \ S] * # ENDBIZ
to capture me with the #BIZ tag, the #ENDBIZ tag and all the text between the tags. For example, if you need some text, I want the expression to match:
some text some test
more text
maybe some code
Currently, the regular expression does not match anything. What have I done wrong?
EXTRA DATA
I am doing the following in PHP
preg_replace ('/ # BIZ [. \ s] * # ENDBIZ /', 'my new text', $ strMultiplelines);
jorge
source
share