#!/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>
In reply to Re: Help constructing a regex that also matches hyphens and parentheses
by zer
in thread Help constructing a regex that also matches hyphens and parentheses
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |