The implementation of Visual Studio (in versions up to VS 2010) is rather non-standard, and at least it does not have this function. You can only specify:
* or @ : match zero or more of the previous expression
+ or # : match one or more of the previous expression
^n : Match exactly n repetitions of the previous expression
So, for A{2,4} you will need to use A^4|A^3|A^2 (see the polygenelubricant comment for an explanation of why you need to do this in descending order).
Later versions of VS support the entire set of .NET regular expressions.
Tim pietzcker
source share