Hi, i'm trying to extract names from a string which are separated by dashes. unfortunately perl extracts only the first and then every second one.
$transcript =~ s/\w?/-$1/; #add leading dash $transcript =~ s/ //g; while ($transcript=~/-(.*?)-/msig) { push @analysts, $1; } print "$_\n" for @analysts;
can somebody help? thank you in advance!
In reply to extracting names between symbols by aka_bk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |