jeudi 2 avril 2015

How to replace particular Substring within a String using PHP preg_replace

I am trying to replace word or sequence of words in a string using preg_replace? For example :


Change These:



ABCExample to abcExample
AnotherExample to anotherExample
XyzAbcExample to xyzAbcExample


Leave as it is:



xyzExample to xyzExample
new to new

Aucun commentaire:

Enregistrer un commentaire