or download this
The regular expression:
(?-imsx:(%TABLE{.*?name="History[^"]*"[^}]*}%\s*(\|[^\|]*){3}\|\s)((\|
+[^\|]*){3}\|\s)*)
...
----------------------------------------------------------------------
) end of grouping
----------------------------------------------------------------------