davido gave the correct answer already, but here's a simple hack regexp that matches your particular example.
/<([a-zA-Z]+)(?:(?:\s+[^>]+)*|\s*)>([^<]*)<\/\1>/
This *will* break in a lot of cases, so if you can at all, use one of the modules that davido recommended, not a silly hack like this.
In reply to Re: Using a Regex to extract tagged content
by lestrrat
in thread Using a Regex to extract tagged content
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |