First match will check for digit,followed by period,then digit,then tab and finally digit in a line and second grep will check the third digit in the match is greater than 40 and less than 250.use warnings; open FILE, "Testus.txt" or die "Couldn't open file."; while (<FILE>) { print "$_ \n" if(/^(\d+\.\d+\t(\d+)\.\d+)/ and grep { +$2} (41 .. 249)};
In reply to Re: How to modify \d in RegEx
by nvivek
in thread How to modify \d in RegEx
by Erosia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |