I have a paragraph as -
== one ===
==== two ==
= three ====
etc.
The number of =
sign vary in every row of the paragraph.
I want to write a preg_replace()
expression that will allow me to replace the texts between the =
signs.
example:
== DONE ===
==== DONE ==
= DONE ====
I tried preg_replace("/\=+(.*)\=+/","DONE", $paragraph)
but that doesn't work. Where am I going wrong?