I have a ereg function that finds a value of 1.05 (which comes from a http post) in a variable and replaces it with a # then the 1.05 and another #. The problem is ereg is interpreting the . as a wild card and with a variable of 1205 it replaces this with a #1.05# even though they do not match.
assuming $v_carry = '1.05'
and $v_teststring = '1205'
$vt = ereg_replace ("$v_carry", "#$v_carry#", $v_teststring);
this command leaves $vt = #1.05# when in reality it should have not replaced anything.
Is there another function I should use or can I escape the . being wildcard.
thanks