use strict;
use warnings;
my @cases = qw(TF
=22; BT
=22; =220;); for my $str (@cases) {
my @matches = $str =~ /^TF=\d{1,2};$/;
if (@matches) {
print "Got it: $str -> $matches[0]\n"; } else {
print "Nothing to do with: $str\n"; }
}
dXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwoKbXkgQGNhc2VzID0gcXcoVEY9MjI7IEJUPTIyOyA9MjIwOyk7CmZvciBteSAkc3RyIChAY2FzZXMpIHsKICAgIG15IEBtYXRjaGVzID0gJHN0ciA9fiAvXlRGPVxkezEsMn07JC87CiAgICBpZiAoQG1hdGNoZXMpIHsKICAgICAgICBwcmludCAiR290IGl0OiAkc3RyIC0+ICRtYXRjaGVzWzBdXG4iOwogICAgfSBlbHNlIHsKICAgICAgICBwcmludCAiTm90aGluZyB0byBkbyB3aXRoOiAkc3RyXG4iOwogICAgfQp9