- or download this
#!/usr/local/bin/perl
#
...
our $c;
our $rxAfterB = qr{(?m)^b[\x20\x09]*([^\n]*)};
- or download this
foreach my $a (@tryThese)
{
...
($c) = $a =~ /$rxAfterB/;
print "c is -->$c<--\n\n";
}
- or download this
$a contains ...
a 10<--
...
b a2 s2 <--
c 30
c is -->a2 s2 <--
- or download this
($c) = $a =~ $rxAfterB;