.../^(c|a|t)+$/ would not match cathatcatcat? I may be misunderstanding the exact meaning of parenthesis or the | symbol or both! I would appreciate any helpful explanations.
Changing the h into a c actually does work. This actually changes my understanding of the whole thing. I would have thought the pattern would match any string starting wit any of (one or more of) c, a, or t; and ending in any of them!
Changing the h into a c actually does work. This actually changes my understanding of the whole thing. I would have thought the pattern would match any string starting wit any of (one or more of) c, a, or t; and ending in any of them!