Thanks to all.
This worked:
^[0-9\.\-\s]*$
> -Original Message-
> From: Henrique VIECILI [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 20, 2004 1:37 PM
> To: Struts Users Mailing List
> Subject: Re: Simple Validator regex needed
>
> ^[\\d | \\s | \\. | \\
Thanks to all.
This worked:
^[0-9\.\-\s]*$
> -Original Message-
> From: Henrique VIECILI [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 20, 2004 1:37 PM
> To: Struts Users Mailing List
> Subject: Re: Simple Validator regex needed
>
> ^[\\d | \\s | \\. | \\
^[\\d | \\s | \\. | \\-]*$
tested with java.util.regex
Henrique Viecili
- Original Message -
From: Tim Penhey
To: Struts Users Mailing List
Sent: Thursday, May 20, 2004 1:35 PM
Subject: RE: Simple Validator regex needed
> From: Eric Dahnke [mailto:[EMAIL PROTECTED]
> Sent:
> From: Eric Dahnke [mailto:[EMAIL PROTECTED]
> Sent: 20 May 2004 16:42
>
> Hello list,
>
> The field should only accept numbers, spaces, dashes and periods.
>
>
> mask
> ^[0-9]*$
>
>
> I can't figure the regext syntax out, I've tried all the following:
>
> ^[0-9]\.\s-*$
> ^[0-9
Hello list,
The field should only accept numbers, spaces, dashes and periods.
mask
^[0-9]*$
I can't figure the regext syntax out, I've tried all the following:
^[0-9]\.\s-*$
^[0-9]\\.\\s-*$
^[0-9].\s-*$
And a ton of other trial and error cases. Can someone help out. Thx.
Hello list,
The field should only accept numbers, spaces, dashes and periods.
mask
^[0-9]*$
I can't figure the regext syntax out, I've tried all the following:
^[0-9]\.\s-*$
^[0-9]\\.\\s-*$
^[0-9].\s-*$
And a ton of other trial and error cases. Can someone help out. Thx.
6 matches
Mail list logo