Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$VAR1 = '19th Ave and Eighth Street S.E.'; $VAR2 = 'Boser and Liker Trail S.E.'; $VAR3 = 'Lambert and Jerry Drive S.E.';
#!/usr/bin/perl -w use strict; use Data::Dumper; my $var = qq( <tr> <td width="651" height="48"><br> This community is grat and has lots to offer.</td> </tr> <tr> <td width="651" height="16">Southeast</td> </tr> <tr> <td width="351" height="9"> 19th Ave and Eighth Street S.E. +</td> </tr> <tr> <td width="351" height="6"> Boser and Liker Trail S.E.</td> </tr> <tr> <td width="351" height="6"> Lambert and Jerry Drive S.E.&nb +sp;</td> </tr> ); my @results = $var =~ m/>[ ]?(.*?)[ ]?</g; print Dumper @results;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text Parse Question with RegEx
by GrandFather (Saint) on Oct 23, 2006 at 21:54 UTC | |
by Anonymous Monk on Oct 23, 2006 at 22:02 UTC | |
by GrandFather (Saint) on Oct 23, 2006 at 22:07 UTC | |
by blazar (Canon) on Oct 24, 2006 at 13:05 UTC | |
|
Re: Text Parse Question with RegEx
by eff_i_g (Curate) on Oct 23, 2006 at 22:14 UTC |