in reply to Using a Regex to extract tagged content
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.
|
|---|