Starting to learn PHP after learning PERL and am having a problem with the pattern matching system. In my PERL code I had the following code.
date =~ s/<font[>]>(\d \w \d) \/ (\d [\d]\d*)<\/font>//is;
I translated it to PHP like this
$pattern = "<font[>]>([0-9] [a-zA-Z0-9] [0-9]) / [0-9] [[0-9]][0-9]*)</font>";
ereg( $pattern, $date, $extracted_text );
but it doesnt seem to work. I tried using the character classes like ((:alpha🙂) and ((:digit🙂) but for some reason that didnt help.
Also I dont have any server software installed on my PC but I want to test out my php script offline and wanted to know what software I could use for that.