|
Posted by Lόpher Cypher on 12/31/05 16:52
Willem-Jan wrote:
> Hi all,
>
> I have problems checking a string with a regular expression. I use:
>
> ereg("[^A-Za-z0-9-]", $string)
>
> to allow characters, digits and -. What do I have to add to allow a
> space, a comma and ;?
>
> Thanx,
> WJ
[^A-Za-z0-9\-\s,;$]+ shall do it :)
luph
Navigation:
[Reply to this message]
|