in reply to Extracting names from string
Looks like a simple regular expression might do ya.
I'm assuming the / and | chars are always located after the s# and before the 'username' formatted version of the name.
$_=~/\/(.+)|/;
$name=$1;
there are more elegant ways but this shows now the capturing parens would work, since there's only one set of parens only $1 is needed.