php-windows | 2001051

[PHP-WIN] Help with Preg match all (newbie) From: Michael Kelley (mkelley <email protected>)
Date: 05/15/01

Hello all,
I'm trying to do a name search from a string containing full names.
the format of the names is "Lastname, FirstName"
the preg expression I'm using is

preg_match_all( "/\b$searchstr.*.,.*/i", $text, $array)

This works great if you don't type in the full last name
i.e. kelle
will return my entry but kelley returns nothing.
Anyone out there that can help? I'd greatly appreciate it. Well I'm off
to read more documentation and see if I can dig it out.

-- 

Michael Kelley mkelley <email protected> Programmer/Systems Analyst I New Mexico State University Information and Communication Technologies Work # (505)-646-1374 P.O. Box 30001 MSC: 3AT Las Cruces, NM 88003

-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe <email protected> For additional commands, e-mail: php-windows-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>