Hai try this,
$string = "s005219/Doe John|John.Doe\\"; ($john) = $string =~ m#\/(.*?)\|#gsi; print $john;
1.With in double quotes text last slash please use escape sequence one more slash. Now, it works.
In reply to Re: Extracting names from string
by gube
in thread Extracting names from string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |