Structured grep and Python
OnLamp: Structured grep and Python “When text files are structured, like HTML, XML, or even news or mail files, you can take advantage of that structure in your search. You can search for words that appear within certain tags, like in the title element of an HTML document, or within the From field of a mail file. All you need is a tool that understands the structure of your text…
Jani Jaakkola and Pekka Kilpeläinen’s structured text search and index tool, sgrep, handles all structured text in a generic way. Sgrep’s expression language allows you to provide details about the structure to sgrep so it can find exactly what you want.” [Zope Newbie News]