So currently I've got the following regex pattern, allowing me to detect any string containing 9 characters that are the same consecutively.
/^.*(\S)\1{9,}.*$/
This works perfectly with a string like the following: this a tesssssssssst
however I wish for it to also detect a string like this: this a tess sss ssssst
(Same number of the repeated character, but with optional whitespace)
Any ideas?