String Split

Does anyone know the syntax for splitting a string using velocity. I am trying to find a folderpath and return only the text before the first /.

$yourstring.split("/",1);

Note: untested, but I’m relatively sure it’ll work.