How do I search a string for multiple periods in a row, for example "...". string.search(/.../); string.search("[...]"); The above will return true even if a single period is detected. string.search("..."); This is even worse as it always returns true, even if there is no period.
var banlist = ["item1", "item2", "[...]"];
I am searching each string in the list, and I need to be able to search for "...".
Edit:
Now I have a new problem. three periods exactly "..." comes out to unicode character 8230, and it is not found in the search. Any other sequence of periods can be found except for three "...".