[Chicago-talk] Can anyone help with a regex?

Richard Reina richard at rushlogistics.com
Wed Apr 3 10:33:04 PDT 2024


I want to be able to find the sting 'ACCT/ID Number(s):' 

Here's what I've tried so far.


my $line = "ACCT/ID Number(s): 1334356";
my $d = "ACCT/ID Number(s):";


if ($line =~ /\b$d(\s|$)/) {

    print "Found $d in line\n";

}

 


More information about the Chicago-talk mailing list