I am running preg_replace across a string which may contain street numbers. The pattern I'm using is:
([A-Za-z0-9]*)/i
This works fine for numbers such as 1, 1a, 123 etc.
However it does not pick up street numbers like 1/54B
I tried to add a forward slash to the pattern like this:
([A-Za-z0-9\/]*)/i
But it isn't picking up numbers like 1/54B.
Any ideas on what I should be using?