I have some ugly html that is emailed to my program that looks like:
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
</head>
<body>
Saved search results.<br>
<br>
Name: 'Some splunk search' <br>
Query Terms: 'tag=foo NOT BAR=\"Boom\"' <br>
Link to results: <a href="https://foo/search/blahblahblah">
https://foo/search/blahblahblah</a>
<br>
<br>
<table border="1">
...snipped the rest for brevity.
I am able to pull the table elements out using HTML::TreeBuilder but can't figure out how to pull the "Name:" an "Query Terms" from above out without resorting to other means.
A $root->dump of the above looks like:
<html> @0
<head> @0.0
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> @0.0.0
<body> @0.1
<p> @0.1.0 (IMPLICIT)
" Saved search results. "
<br /> @0.1.0.1
<br /> @0.1.0.2
" Name: 'Some splunk search' "
<br /> @0.1.0.4
" Query Terms: 'tag=foo NOT BAR=\"Boom\""
So is there a way to get the naked text between the @0.1.0.2 and @0.1.0.4
Thanks! Todd