Hello,
As much as I try I can't totally understand how to use preg_match.
I have downloaded an open source system from the internet that I want to use, but they use ergei in their code.
When I change it to preg_match I get all kinds of errors.
Can someone please help me and tell me what is this code trying to do and how to fix the error that I get?
!eregi ("^([0-9]?[0-9])+[-|/|.]+([0-9]?[0-9])+[-|/|.]+(([0-9]{2})|([0-9]{4}))$", $from_date, $date_regs)
I have changed it to !preg_match, but then I get this error:
Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\millery\content\time\time\reports\timerpt.php on line 236
I keep trying to fix these eregi to preg_match and keep getting all kinds of errors.
Can someone please help?