Originally posted by OhLordy
I've found out where the problem is but can't figure out how to solve it.
if I runa string like this
ALIGN="RIGHT">12.95
through this ereg_replace
$bibbit[$i]=ereg_replace("[>]*>","",$bibbit[$i]);
it deletes the whole string rather than just what's to the left of the >
What can I do to solve this?
Thanks Rob
Well, let's disect your regex...
"[>] means anything that isn't a >, while * means 0 or more of them. and > means a > char.
So, this would match: "o>" since o is NOT a > sign, and it is followed by a > sign.
Might you try this one: ".+>"
Note that it's common to misunderstand [0-9] and [0-9]
[0-9] means a left column anchor
[0-9] means NOT 0-9