if ($if_descr =~ m/DHEC\.?(\w+)/) { print "'$1'\n"; $circuite_id = $1; }
Nice and simple, no need for look-arounds whatsoever.
In reply to Re: regexp help -- grab almost a whole string
by moritz
in thread regexp help -- grab almost a whole string
by tdruttenberg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |