I am having a little difficulty with the preg_match function. I am trying to get the program to retrieve the text that is between <lengthcheck>*text here*</lengthcheck>
My current code that I am using is this: preg_match("/<lengthcheck>(.*)</lengthcheck>/", $contents, $preglengthcheck);
And the error message that gets returned is this: Warning: preg_match() [function.preg-match]: Unknown modifier 'l' in /home/********/public_html/******/analyze.php on line 13
Am I using the pre_match function correctly?
Thanks.
My current code that I am using is this: preg_match("/<lengthcheck>(.*)</lengthcheck>/", $contents, $preglengthcheck);
And the error message that gets returned is this: Warning: preg_match() [function.preg-match]: Unknown modifier 'l' in /home/********/public_html/******/analyze.php on line 13
Am I using the pre_match function correctly?
Thanks.