I am trying to remove dashes from a string. Simple enough, using preg_replace()
but in this case, I want to remove dashes ONLY when they appear between a letter OR between a number and a letter.
I am not too comfy with regex, expecially when I can't use Postix expressions.
Say given a string like "123-ab" or "ab-123" I want to remove the dashes such that the strings returned are "123ab" and "ab123" respectively.
I think I can do this with the preg_replace function. Your direction is appreciated.