Is it possible to use quantifiers with groups?
For example. I want to match something like:
- 11%
- 09%
- aa%
- zy%
- g1%
- 8b% ...
The pattern is: 2 letters or numbers (mixed, or not) and a % ending the string ...
<?php
echo preg_match('~^([a-z]+[0-9]+){2}%$~', 'a1%'); // 0, I expect 1.
I know, this example doesn't make too much sense. A simple [list]{m,n} would solve this one. It's as simples as possible just to get an answer.