Re: Can't get this regular expression figured out
- From: "Larry W. Virden" <lvirden@xxxxxxxxx>
- Date: Fri, 27 Jul 2007 12:55:07 -0000
On Jul 27, 3:08 am, "slebet...@xxxxxxxxx" <slebet...@xxxxxxxxx> wrote:
On Jul 27, 12:43 am, Andrew Falanga <af300...@xxxxxxxxx> wrote:
I'm trying to
figure out how the regular expression should look to match any
characters other than decimal numbers and '-'.
Personally, if I understand your description of the input format
correctly, I'd use the pattern:
{^(\d+(-\d+)?\s+)*\d+(-\d+)?$}
That regex might tell the OP whether what was typed was right or not.
But another expression would be needed to achieve the goal of "match
any character other than decimal numbers and '-' (and white space, of
course).
.
- Follow-Ups:
- Re: Can't get this regular expression figured out
- From: slebetman@xxxxxxxxx
- Re: Can't get this regular expression figured out
- References:
- Can't get this regular expression figured out
- From: Andrew Falanga
- Re: Can't get this regular expression figured out
- From: slebetman@xxxxxxxxx
- Can't get this regular expression figured out
- Prev by Date: Re: How to express exponential function in TCL
- Next by Date: Re: Can't get this regular expression figured out
- Previous by thread: Re: Can't get this regular expression figured out
- Next by thread: Re: Can't get this regular expression figured out
- Index(es):
Relevant Pages
|