You have to use use the s
modifier to match new lines with a dot, I don't know where you can do this in NetBeans but you could begin your expression with (?s)
to enable it.
So a regex to match <td ...> ... </td>
would be something like this
(?s)(<td[^>]*>.*?<\/td>)
.
Explanation:
(?s)
: make the dot match also newlines<td
: match<td
[^>]*
: match everything except>
0 or more times>
: match>
.*?
: match everything 0 or more times ungreedy (until</td>
found in this case)<\/td>
: should I even explain o_o ?