![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Accessing data between two tagsby Skeeve (Parson) |
on Nov 09, 2006 at 13:23 UTC ( #583095=note: print w/replies, xml ) | Need Help?? |
The others already gave regexes. But how about this split approach:
Update: Thanks to jdporter for telling me about my mistake, using 2 instead of 3 above. Fixed... Of course this will also find other constructs like </CS_REFCLT>dfasdf</CS_REFCLT>. But maybe, if the data is XML, a real XML parser like XML::Twig is something that would help you best here...
s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{% +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
In Section
Seekers of Perl Wisdom
|
|