in reply to Help constructing a regex that also matches hyphens and parentheses

Would I be right in saying that you wish to match everything between a <td> and a matching </td>?

If that's the case:

m/<td>(.*?)<\/td>/;
Should do the trick.

(Note that the ? makes the .* non-greedy, which avoids slurping up too much if you have multiple <td></td> tags on the one line.)

Cheers,
Darren :)