You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
string_parameterize = function (str1) {
|
|
return str1.trim().toLowerCase().replace(/[^a-zA-Z0-9 -]/, "").replace(/\s/g, "-");
|
|
};
|
|
console.log(string_parameterize("Robin Singh from USA.")); |