Content-Type: text/plain; charset="iso-8859-1"
I am writing an application which shall parse through a text file and gra
b these values and put in a table form as an output. The test file is lik
The output I require will be ID number (9321) SysID number (03139) CtrlID
(943JDOIASJOPJDFSA) and the email ID (Test12@m...) .....
I would highly appreciate any help from anyone.
SriGet more from the Web. FREE MSN Explorer download : http://explorer.m
Hooray for regular expressions! There's probably more efficient ways of
writing this expression, but it works (I think).
$patt = "/^(\d+)--(\d+)-[^-]+-([0-9A-Z]+);([^;]+);\d+.*$/";
$string = "9321--03139-134912-943JDOIASJOPJDFSA;Test12@m...;21-093-21943
preg_match($patt, $string, $matches);
$id = $matches;
$sysid = $matches;
$ctrid = $matches;
$email = $matches;