in reply to How do you match a stretch of at least N characters

StackOverflow has a relevant discussion on a similar topic, also referencing the notion of using dynamic programming techniques.   Attempting to approach this as a regular-expression string-matching problem will not scale-up.