Array
var str = "select * from employee"; str = str.toLowerCase() var res = str.match(/select/ltrim/rtirm/where/group by/from/asc); The result of res will be an array with the values: select,from etc.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)