You might need to give a larger sample of your data, but if all you are doing is trying to grab the chars between the colons, then:
$_ = 'hello_world:foo_bar:goodbye_world'; /\w+:(\w+):\w+/; print $1;
In reply to Re: Perl = reg Exp - Cut info in middle
by Melly
in thread Perl = reg Exp - Cut info in middle
by dani_cv_74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |