A friend asked for a regex that matches a paragraph that contains only upper-case text inside a nested hierarchy of tags. Some examples: Matches: Fail: I came up with the following expression: It doesn’t handle tags interspersed with text or nested paragraph tags. Here’s a sample on Rubular.
regular expressions
There are 7 posts tagged regular expressions.