On Thursday 15 July 2004 21:15, Arik Raffael Funke wrote:
>
> However if I have,
> Last Name:
> Street: Teststreet
> (no entry after last name)
>
> Both search strings return me:
> ----
>
> Street: Teststreet
> ----
>
> Also why doesn't "Last Name:\s*(.*)$" work, and neither "^Last
> Name:\s*(.*)". Both strings are not found at all - that's why I thought
> the php implementation might treat new lines in a strange way.

  preg_match('|^Last Name:(.*)$|m', $haystack, $matches);

should work.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Someone is speaking well of you.

How unusual!
*/

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

Reply via email to