> Obviously the new-line is missed. Any thoughts on this?
> 
> sample code:
> ereg("Last Name:\s*(.*)\n", $strInput, $regs)
> echo $regs[1];

try this:

ereg("Last Name:\s*(.*[^\n])", $strInput, $regs);
echo $regs[1];

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to