Would be grateful if you can help me with the following REX expressions.
1. Want to search for the first occurrence of an image tag in a document <img src="some url" alt="possibly some text" />. $ret needs to have the the whole tag.
2. I have a URL structure like "/category/subcategory/docid/sometext.html". I need to get each element (category, subcategory, docid, sometext) in to separate variables.
Many thanks for your usual help.