I have two regular expressions that I am having a hard time understanding. Below are the two expressions followed by what I believe to be correct. I am not sure if these expressions are either RE or ERE.
^\([a-z]\)\1
Search the beginning of the line any lowercase letter from a to z and matches one occurrence.
^.*\([a-z]*\).*\1.*\1
Search for at the beginning of the line, any single character followed by zero or more lowercase letters a through z followed by any single character then followed by any two additional "any" characters or no characters