Re: Perl match problem
- From: John Bokma <john@xxxxxxxxxxxxxxx>
- Date: 31 Aug 2005 04:23:07 GMT
"Jürgen Exner" <jurgenex@xxxxxxxxxxx> wrote:
> (untested, just to give you an idea):
>
> if (/RD(\d*)/) and $1 >= -25 and $1 <= 25) ....
Uhm, since you expect at least one digit, at most 2, and there could be a
minus sign:
/RD(-?\d\d?)/
or
/RD(-?\d{1,2})/
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
.
- Follow-Ups:
- Re: Perl match problem
- From: Jürgen Exner
- Re: Perl match problem
- References:
- Perl match problem
- From: yezi
- Re: Perl match problem
- From: Jürgen Exner
- Perl match problem
- Prev by Date: Re: array question (newbie)
- Next by Date: Re: A program to measure flops in Perl (should it be this "off"?)
- Previous by thread: Re: Perl match problem
- Next by thread: Re: Perl match problem
- Index(es):
Relevant Pages
|