Ok, I've come across this problem several times, figured it was time to ask. If I have a string, how do I match any of several character repeating a certain amount of time? Basically,
/[ABCD]{5}/ will match either A, B, C or D five times, I need it to match A, B, C or D and then match that character 5 times. I first thought something like
/([ABCD]){5}/ should do the trick, but that doesn't seem to work. Also I need to find repeats of more than one character, which in my mind would look like
/([ABCD]{2}){5}/Any thoughts?