I'm trying to use a regex like /[computer]{3,8}/
to get any words containing only the letters in computer ranging from 3 to 8 letters long. That regex instead captures all words containing ANY of the letters in [computer]. I've been looking at regular expression examples, but i can't quite figure it out...
How do i modifiy this regular expression to capture words containing ONLY the letters in computer (with a length of 3 to 8)?
Some examples of what i want to match using the base word 'computer' would be:
put, mop, cut, term, cute, mom, putt, mute
(the end result is to have it only use each letter once, but i can manage without that feature)