I want to count characters, but they may be separated by characters that do not match.
Here is an example. I want to match a text that has 10 or more word-characters
Hey I think this would a simple but working one:
( *?[0-9a-zA-Z] *?){10,}
Breaking the regex down:
( *? --------It can start with space(s)[0-9a-zA-Z] -Followed with the alphanumeric values*?) ---------It can end with space(s){10,} -------Matches this pattern 10 or more timesKey: When I look at the count for regexes, it applies to the group, i.e., the things in the brackets "()", this case, multiple spaces followed ONE from the alphanumeric values followed by spaces are still counted as one match. Hope it helps. :)