cdherold has asked for the wisdom of the Perl Monks concerning the following question:
Any help greatly appreciated, Chris I want to use something like:<tr> The last company to fail was ISTF with losses of $60M.</tr>
but I need to get the keyword in there so that it selectively pulls out that sentence, as oppossed to others that are also flanked by <tr> and </tr>.for ($text =~ /<tr>(.*?)<\/tr>/gmsi){ $selected_text=$1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: How do I extract all text around a keyword between two symbols?
by Ovid (Cardinal) on Aug 01, 2001 at 00:57 UTC | |
|
Re: How do I extract all text around a keyword between two symbols?
by ChemBoy (Priest) on Aug 01, 2001 at 00:30 UTC | |
|
Re: How do I extract all text around a keyword between two symbols?
by tadman (Prior) on Aug 01, 2001 at 00:18 UTC | |
|
Re: How do I extract all text around a keyword between two symbols?
by tachyon (Chancellor) on Aug 01, 2001 at 00:42 UTC | |
by Hofmator (Curate) on Aug 01, 2001 at 16:31 UTC | |
|
Re: How do I extract all text around a keyword between two symbols?
by Agermain (Scribe) on Aug 01, 2001 at 00:23 UTC |