in reply to Re: regexp help -- grab almost a whole stringin thread regexp help -- grab almost a whole string
if ($if_desc =~ /(DHEC)\.?(\w+)/) {$circuit_id = "$1$2"};
Would this satisfy your requirement?
Blessings,
~Polyglot~