Re: ereg / regexp fun
| From: | Hans H. Anderson | Date: | Wed, 16 Aug 2000 15:50:17 +0000 |
| Subject: | Re: ereg / regexp fun | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12055@lists.php.net to get a copy of this message | ||
Dieter,
The example you gave had spaces, but all you have to do to fix it is take
out the spaces. You're gonna be matching all sorts of stuff you probably
don't want to match, though.
Hans
On Wed, 16 Aug 2000, Dieter Kneffel wrote:
>
>
> "Hans H. Anderson" wrote:
>
> > Here's one that might be more effective:
> >
> > ereg(" (:[a-z]) ",$msg,$item)
> >
>
> but this still requires a blank before and after the string!
>
> - dk
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
Hans Anderson ~ me@hansanderson.com
PO Box 426, Missoula, MT 59806 | PHP, Search Engines, SQL
(800)397-9116 / (406)549-6524 | Databases, Flash Multimedia,
http://www.hansanderson.com | Killer Audio Production,
http://www.goofiness.com | Minty Fresh Breath.