> From: Eric Dahnke [mailto:[EMAIL PROTECTED]
> Sent: 20 May 2004 16:42
> 
> Hello list,
> 
> The field should only accept numbers, spaces, dashes and periods. 
> 
> <var>
>       <var-name>mask</var-name>
>       <var-value>^[0-9]*$</var-value>
> </var>
> 
> I can't figure the regext syntax out, I've tried all the following:
> 
> <var-value>^[0-9]\.\s-*$</var-value>
> <var-value>^[0-9]\\.\\s-*$</var-value>
> <var-value>^[0-9].\s-*$</var-value>
> 
> And a ton of other trial and error cases. Can someone help out. Thx.

Wouldn't the regex ^[0-9\.-]*$ work? (not tested, just of the top of my head).

Tim




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to