in reply to Regex Help
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex Help
by Dru (Hermit) on Jun 07, 2004 at 14:56 UTC | |
by Limbic~Region (Chancellor) on Jun 07, 2004 at 15:04 UTC | |
by eXile (Priest) on Jun 07, 2004 at 15:28 UTC |