How do I:
to: Newton, Einstein and Edison. endIn this case I want all the \[code\]n\[/code\] letters to be replaced unless they are part of the word \[code\]end\[/code\] And \[code\]Newton\[/code\] should not change to \[code\]newton\[/code\]
- replace characters in a word using \[code\]preg_replace()\[/code\] but makean exception if they are part of acertain word.
- replace an uppercase character with anuppercase replacement even if thereplacement is lowercase and viceversa.
to: Newton, Einstein and Edison. endIn this case I want all the \[code\]n\[/code\] letters to be replaced unless they are part of the word \[code\]end\[/code\] And \[code\]Newton\[/code\] should not change to \[code\]newton\[/code\]