ereg regexp problem



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

.



Relevant Pages

  • Re: ereg regexp problem
    ... I have a problem of matching a dashin the code beolow. ... I am running PHP Version 5.0.5 on windows. ... to mark a range. ...
    (alt.php)
  • Re: Emulation
    ... Windows being case-blind and the Unix server which needs ... matching case. ...
    (comp.sys.psion.misc)
  • MD5 hashes for FC2
    ... I am downloading and summing on Windows, but that shouldnt be an issue I ... guess...it seems the sums are out of order - eg: instead of matching the ...
    (Fedora)
  • Re: MultiByte Character Sets and False Matches
    ... MySQL on my Windows uses ShiftJIS not EUC-JP. ... You are telling MySQL to do the matching. ... whatever character set the database thinks the data uses. ... the database that the data is ShiftJIS when it is really EUC-JP, ...
    (perl.dbi.users)
  • Re: "prompted selection" ?
    ... I tested this on Windows and Mac, and it worked exactly as you ... but if I try first letter matching, ... The control searches for the next entry that starts with the ...
    (microsoft.public.word.vba.userforms)