php: how to replace a letter NOT following a backslash

Kruk

New Member
hi i want to replace all "e" in a string with "-" which are NOT following a backslashso "hello" should be -> "h-llo" but "h\ello" should be "hello" any ideas if this is possible with a single regex?
 
Back
Top