to:my $number_string = 'Your number is \+([0-9]+)';
Regular expressions are case-sensitive (Number).my $number_string = 'Your Number is \+([0-9]+)';
I determined this by removing characters from your regex until it matched. umber is \+([0-9]+) matched, but number is \+([0-9]+) did not. Reducing code is a common debugging technique.
In reply to Re: qr// for Expect.pm problem
by toolic
in thread qr// for Expect.pm problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |