问题
I am not really good at regular expressions, but I want to use only one regular expression to match for both:
- <span>
- </span>
Any suggestion?
回答1:
</?span>
However, you shouldn't parse HTML using regular expressions.
来源:https://stackoverflow.com/questions/7199006/regular-expression-to-match-span-or-span