in reply to Help constructing a regex that also matches hyphens and parentheses
#!/usr/bin/perl while (<DATA>){ print if(m#\s+([\w\-]+\s*)+</td>#g); } __DATA__ This is a test This is a (test) This is a (test123) this is a (123) This-is a test This-is-a test </td>
|
|---|