($reversed_name) = $string =~ m!/(.*?)\|!;
The perlre and perlop help files give more details on regular expressions.
Update: Escaped the |.
In reply to Re: Extracting names from string
by ikegami
in thread Extracting names from string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |