Bob Sanders wrote:
For instance, I have a similar block of text like so:
@text = "Lorem ipsum <code>[some code here]</code> dolor sit"
What sytax would I use to check if the text is in between the <code>
tags?That is: "If @text is in between '<code>' and '</code>' tags, then
do..."Any ideas?
This regex pattern seems to work
/<code>(.*?)\<\/code>/
extracting the string now is a bit more difficult
-- jarod