Re: regular expression question
| From: | Andrei Zmievski | Date: | Wed, 28 Jun 2000 18:24:19 +0000 |
| Subject: | Re: regular expression question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3630@lists.php.net to get a copy of this message | ||
On Wed, 28 Jun 2000, Ken N wrote:
> Hi,
>
> I am trying to match anystring that contians either, for example
> dir3 or lets say dir12, but if I do "dir[0-9]" I only match if it's dir3
> and if I do dir[0-9][0-9] I only get a match if it's dir12. How can I tell
> it to match either or? I have tried a few different options but none seem
> to work. If there is a regular expression guru out there. I am sure this
> is an easy question I just have been beating it to death and haven't seem
> to get there...
dir[0-9]+
-Andrei
* What were the first 15 billion years of the universe like for you? *