/(?:(?:^|\s)(?:one|two|three|four|five|six|seven|eight|nine|ten)(?=\s|$)){4,}/
PHP code:
if (preg_match(...put regex here..., $stringToTestAgainst)) {
Note. Additional words (for example, "twelve") can be easily added to the regular expression.
James
source share