I assumed that there are only two ':' in your string and you wanted the part between them.my $yourstring="someinfo:Info_to_cut:Take_me_off"; $yourstring=~/^.*?:(.*?):.*$/; $info=$1;
In reply to Re: Perl = reg Exp - Cut info in middle
by timos
in thread Perl = reg Exp - Cut info in middle
by dani_cv_74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |