ereg regexp problem
- From: rallykarro@xxxxxxxxxxx
- Date: Sun, 30 Sep 2007 05:10:53 -0700
Hi,
I have a problem of matching a dash(-) in the code beolow.
Why does not the below work when matching a dash(-) but all other
signs is correctly matched when trying?
$res = ereg("^[a-zA-Z\.\-\,\/\Å\å\Ä\ä\Ö\ö\Ü\ü\ß\é\æ\ø\Æ\Ø ]+$", "-");
I am running PHP Version 5.0.5 on windows.
thanks,
//Karolina
.
- Follow-Ups:
- Re: ereg regexp problem
- From: J.O. Aho
- Re: ereg regexp problem
- Prev by Date: Re: Determine if string is all uppercase?
- Next by Date: Re: the usort 's puzzle
- Previous by thread: Determine if string is all uppercase?
- Next by thread: Re: ereg regexp problem
- Index(es):
Relevant Pages
|