|
Posted by Stefan Rybacki on 11/03/05 21:40
billy wrote:
> | ^content/([^/]+)/([^.]+)$
> |
> | I know the "^" means "not".
>
>...
> [^.]+ means that "aba" is fine but "aab" is not since one "a" immediately
> follows another (adjacent).
That is definitely wrong. See my other posting.
And if you don't believe try this:
$test="aaaabbbb.lblal";
preg_match("/([^.]+)/",$test,$result);
print_r($result);
This expression matches on anything before . even if a follows a follows a follows a ...
follows b ...
Regards
Stefan
>
> hth,
>
> me
>
>
Navigation:
[Reply to this message]
|