|
Posted by Damien on 09/21/05 14:11
Hi to all,
I would like to get field values from a multi-line text.
For instance :
"
Name: Mr Smith
Address: Paris
"
I've tried to use (I'm a total regexp newbie, so I took it from the doc):
eregi("Name: (.*)\n",$VariableHoldingTheText,$parts);
Problem: $parts[1] starts at the right place, but does not stop at the
end of the line. I get :
"Mr Smith
Address: Paris
"
Where am I wrong ? I've tried to google around, but didn't find anything
that could help me...
Thanks in advance for your help/hints/links !
BR
--
Damien
Navigation:
[Reply to this message]
|