The regex you want is <TD[^>]*>
:
< # Match opening tag
TD # Followed by TD
[^>]* # Followed by anything not a > (zero or more)
> # Closing tag
Note: .
matches anything (including whitespace) so [.\s]*?
is redundant and wrong as [.]
matches a literal .
so use .*?
.