Icon ExtractFileRoot

Unit: WebCore

Available In: Client and Server Applications

function ExtractFileRoot(const Value: String; const Ext: String;
                         Delimiter: String=SLASH): String

The ExtractFileRoot function returns the file name, without the file extension, in the string input parameter. The specified file extension should include the period (.) file extension delimiter. The return value will be a string containing the root of the file name, if one exists.

Examples

X := ExtractFileRoot('https://www.elevatesoft.com/index.html,'.html');  // X is 'index'
Image