Then look at INSTR/INSTRREV or SPLIT.
code:
$x='\\servername\sharename'
$server=split(substr($x,3)$x,'\')[0]

_________________________
There are two types of vessels, submarines and targets.