in reply to regex needed
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'; }
|
|---|