I am new to preg_replace
- PHP and just learning it now...
I want to change a specific character, only if its previous and following character is of english characters. i.e. target character is part of the word and not a start or end character.
Örnek için ...
$string = "I am learn*ing *PHP today*";
Ben bu dize şu şekilde dönüştürülmesini istiyoruz.
$newString = "I am learn'ing *PHP today*";