Closed MarioVanDenEijnde closed 8 years ago
Make a user defined function
alasql.fn.fileName = function(name) {
var all = name.split('.')
all.pop();
return all.join('.');
};
alasql.fn.fileType = function(name) {
return name.split('.').pop();
};
So you can
select fileName(name) as fileName, fileType(name) as fileType from ?
Code not tested
Hello ALASQL team,
I have got a new challenge: I have got a field value like:
And I need:
Any idea? Kind regards, Mario