Regexp
| From: | MEGRET Arnaud | Date: | Tue, 29 Aug 2000 12:36:39 +0000 |
| Subject: | Regexp | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14101@lists.php.net to get a copy of this message | ||
Hi
I have a var looking like :
XXXXXXXAZEYYYYYYYYYYYYYYYYYYPOIXXXXXXXXXXX
where :
XXXX doesn't contain the strings AZE or POI
YYYY can contain those strings 1 ore more time.
I would like to use ereg to get three var containing :
XXXXXXXXXXXX
AZEYYYYYYYYYYYYYYYYPOI
XXXXXXXXXXX
In other words, I would like to get from the first occurence of the string
AZE to the last occurence of POI.
Is it possible with one regexp expression?
thanks
____________________________________________
Arnaud Megret (arnaud.megret@cegetel.fr)
Cegetel
____________________________________________