jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl -w use strict; #matches '>' then 0 or more spaces and then #0 or more alphanumeric characters followed by '<' and 0 or more space +s while(<>){ print if m/>\s+\w*</|/>\w*</|/>\w*</s+//; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cropping the output of the pattern matcher
by wog (Curate) on Sep 23, 2001 at 23:44 UTC | |
|
(jeffa) Re: Cropping the output of the pattern matcher
by jeffa (Bishop) on Sep 23, 2001 at 23:47 UTC | |
|
Re: Cropping the output of the pattern matcher
by trantor (Chaplain) on Sep 23, 2001 at 23:43 UTC | |
by jerrygarciuh (Curate) on Sep 24, 2001 at 00:29 UTC | |
by hopes (Friar) on Sep 24, 2001 at 05:14 UTC | |
by mandog (Curate) on Sep 24, 2001 at 07:28 UTC | |
|
Re: Cropping the output of the pattern matcher
by tachyon (Chancellor) on Sep 24, 2001 at 07:16 UTC |