almost more trouble than it is worth... even for basic stuff

code:
Function MidStr($string,$leftchar,$rightchar,optional $trim)
if not instr($string,$leftchar) or not instr($string,$rightchar)
exit 1
return
endif
$MidStr = split(split($string,$leftchar)[1],$rightchar)[0]
if $trim
$MidStr=Trim($MidStr)
endif
endif

_________________________
How to ask questions the smart way <-----------> Before you ask