Javascript regular expressions: how to match ONLY the given characters?
- by Dfowj
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)?