How to search within a given string so that every 3 (or more) character ordered coincidence is captured? I am using it for applying some conditional restrictions in an HTML search input... My best try so far:
/[deleted]{3,}/g
I need "del", "ele", "let", "ete" or "ted" to be captured... But also "dele", "eted" or even the full "deleted". The preceding regex does the trick, but the problem now is the order of the characters, because it also captures strings like "ltd" or "eded", which are not in order with the word and should not.
Any help?
Thanks in advance.