how can I find the position of the string "ten" within a sentence, without using the exact string directly . Print as many spaces as there were characters in the original sentence before the aforementioned string appeared, and then the string itself in lowercase.
Example output: TEN... NINE... EIGHT... TWO... ONE... ten
var regex = /ten/gi; words = words.replace(regex, '');
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)