There is a log file in which there are a bunch of lines. Each has a substring of type REFER_ID=575616 .
I want to pull out all the referrals id using code
ereg("(REFER_ID=\d*)", $str, $regs); In $regs only " REFER_ID= " is entered without numbers.
If in the regular expression to replace with " REFER_ID=\d* ", then $regs not formed at all (checked with the code isset ($regs)? print 1:print 0; )
Where am I wrong?