Quote:
Originally Posted by http://gscript.graal.net/substring
Usage
Syntax: string.substring(index[, length]);
Returns string.
Example
PHP Code:
function onCreated()
{
temp.foo = "Hello World!";
echo(temp.foo.substring(1));
echo(temp.foo.substring(6, 5));
}
|
This is a good starting point. If you know for a fact that the file being passed has .gani attached, you can just use substring. Otherwise, you might want to use a mix of
http://gscript.graal.net/pos and substring.