But then, I assume you want to ignore greater than signs and spaces anywhere in the line, so you also want to match Se>>>nsor 30 and S e n s o r > 3 0.while (<DATA>) { chomp; my $copy = $_; s/[< ]+//g; print "MATCH => $copy\n" if $_ eq 'Sensor30'; }
In reply to Re: regex needed
by JavaFan
in thread regex needed
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |