in reply to Re: Extracting names from stringin thread Extracting names from string
echo "m!/(.*)|!;" | perl -pe's/\|/\\\|/' [download]
Cheers,R.