Re: Regular Expression just one step away from what I need....
| From: | Geoff Nicol | Date: | Fri, 17 Aug 2007 18:02:37 +0000 |
| Subject: | Re: Regular Expression just one step away from what I need.... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260976@lists.php.net to get a copy of this message | ||
I am no regex expert but wouldn't
preg_match_all( "/'([^']+)'/Ui", $theString, $matches);
Be more flexible?
On 8/17/07, Thijs Lensselink <dev@lenss.nl> wrote:
>
>
> If it's only real words this will do:
>
> $theString = "'foo''bar''glorp'";
> preg_match_all( "/'([a-z]+)'/Ui", $theString, $matches);
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>