Erosia has asked for the wisdom of the Perl Monks concerning the following question:
I have a very simple question to which I seek answers:
use warnings; open FILE, "Testus.txt" or die "Couldn't open file."; while (<FILE>) { print "$_ \n" for /^(\d+\.\d+\t\d+\.\d+)/ };
That is my RegEx which matches strings like 234.555 "tab" 43.235 etc.
However, now I want one of the \d+ (the 3rd one of the 4) to only match numbers which are above 50 and below 250. How do I modify a \d+ to only match a certain value of numbers? Thanks alot
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to modify \d in RegEx
by kennethk (Abbot) on Apr 07, 2010 at 14:21 UTC | |
|
Re: How to modify \d in RegEx
by SuicideJunkie (Vicar) on Apr 07, 2010 at 14:27 UTC | |
|
Re: How to modify \d in RegEx
by JavaFan (Canon) on Apr 07, 2010 at 14:42 UTC | |
|
Re: How to modify \d in RegEx
by Anonymous Monk on Apr 07, 2010 at 14:21 UTC | |
|
Re: How to modify \d in RegEx
by nvivek (Vicar) on Apr 08, 2010 at 04:48 UTC |