Find multi-line block using grep and/or automator with BBEdit I have an xml file output from WordPress.

I have BBEdit as my main search tool.

I am on a Mac running 10.7.4

I am trying to find a muli-line block of text that starts with &lt;item&gt; and end with &lt;/item&gt;

In the block, there must be &lt;wp:status&gt;publish&lt;/wp:status&gt; and &lt;wp:post_type&gt;post&lt;/wp:post_type&gt;

Does anyone have any idea how I would find that using GREP or Automator?

(Sorry I don't have enough rep to make better tags)
You can do multiline greps in TextWrangler using various pattern modifiers (i, m, s, and/or x)

e.g. 

searching for

&lt;item&gt;(?s).*?&lt;\/item&gt;

will match across lines. 

After that, you can modify your regex to be more elaborate.