I love regexp but I find it rather confusing why there is no "match all" special character? For example, if I wanted to select a HTML tag and its contents, I would do
re = "<tag>([\s\S]*)</tag>"
You see, [\s\S] is a workaround to solve the absence of a match-all special character. Is there a reason why a match-all is missing from the spec? I know about .
but it's not that pretty either:
re = "<tag>([.\n]*)</tag>"