Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
From what I gathered from another post this: "s*(.+?)\s*" should get me to the next line because *s in this context is line feed. Can anyone tell me where I went wrong here?if ($line =~ m/USB\d*::0x[0-9a-fA-F::]+0x[0-9a-fA-F]+::[0-9a-fA-F]+INS +TR\s*(.+?)\s*USB\d*/) { print $line; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex multi-line
by AppleFritter (Vicar) on Sep 15, 2014 at 23:19 UTC | |
|
Re: regex multi-line
by kennethk (Abbot) on Sep 15, 2014 at 23:30 UTC | |
|
Re: regex multi-line
by Laurent_R (Canon) on Sep 16, 2014 at 06:20 UTC | |
|
Re: regex multi-line
by Anonymous Monk on Sep 15, 2014 at 22:32 UTC | |
by Anonymous Monk on Sep 15, 2014 at 22:39 UTC | |
by Anonymous Monk on Sep 15, 2014 at 23:46 UTC |