Re: Seemingly weird regex problem
| From: | Tim Boring | Date: | Thu, 20 Jan 2005 20:37:21 +0000 |
| Subject: | Re: Seemingly weird regex problem | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206892@lists.php.net to get a copy of this message | ||
On Thu, 2005-01-20 at 13:43, Jason Wong wrote:
> On Friday 21 January 2005 02:16, Tim Boring wrote:
>
> > It's perfectly legit to use expressions. Now perhaps there is something
> > wrong with the regex I'm trying to use, but using a regex in and of
> > itself is legal.
> > http://www.php.net/manual/en/control-structures.switch.php
>
> Yes, but comparing those expressions to:
>
> switch ($line)
>
> where $line is a string, doesn't make sense. See my other post.
Thanks, Jason! I'll try this and see what I get.
Tim