if ($if_desc =~ /(DHEC)\.?(\w+)/) {$circuit_id = "$1$2"};
Would this satisfy your requirement?
Blessings,
~Polyglot~
In reply to Re^2: regexp help -- grab almost a whole string
by Polyglot
in thread regexp help -- grab almost a whole string
by tdruttenberg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |