Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi
Can You please clear my regexp doubt
$input=' This is sample <This is sample text> This is sample <This is sample text <a>this is sample text</a> This + is sample> ';
I should match all the < to > and stored in an array.
conditions:
Inbetween < to >, <a>..</a> tag may comes 0 or more times
Other tag should not come except <a>..</a>
Don't conside the > in <a> and </a> tag
Edited by Arunbear: Changed title from 'regexp', as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: encode HTML entities with a regexp
by gopalr (Priest) on May 12, 2005 at 07:01 UTC | |
by Ido (Hermit) on May 12, 2005 at 16:40 UTC |