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"; }
}
dXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwoKbXkgQGNhc2VzID0gcXcoVEY9MjI7IEJUPTIyOyA9MjIwOyk7CmZvciBteSAkc3RyIChAY2FzZXMpIHsKICAgIG15IEBtYXRjaGVzID0gJHN0ciA9fiAvXlRGPShcZHsxLDJ9KTskLzsKICAgIGlmIChAbWF0Y2hlcykgewogICAgICAgIHByaW50ICJHb3QgaXQ6ICRzdHIgLT4gJG1hdGNoZXNbMF1cbiI7CiAgICB9IGVsc2UgewogICAgICAgIHByaW50ICJOb3RoaW5nIHRvIGRvIHdpdGg6ICRzdHJcbiI7CiAgICB9Cn0=