What is the regex pattern to determine if a string solely consists of a single repeating character?
e.g.
"aaaaaaa" = true
"aaabbbb" = false
"$$$$$$$" = true
This question checks if a string only contains repeating characters (e.g. "aabb") however I need to determine if it is a single repeating character.