Cheers - L~R#!/usr/bin/perl use strict; use warnings; my $output = "Output: Got .\"ATDT123456\nBUSY"; print "matched\n" if $output =~ /ATDT\d+\nBUSY/m; # or print "matched\n" if $output =~ /ATDT\d+.BUSY/s;
Update: The first question is to imply that there is more than one way to get an apparent newline. Win32 for instance uses \r\n as line endings.
In reply to Re: Regex Help
by Limbic~Region
in thread Regex Help
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |