I am reading the regular expression analyzer code and starting to wonder if the regular expression syntax is regular and can be expressed by another (rather complicated) regular expression?
rere = "" # the regular expression of regular language match1 = re.match(rere, "[az] +@ [az]+.com") # True match2 = re.match(rere, ")az[") # False
I donโt see a recursive structure in the syntax of regular expressions, so I think that maybe this is doable?
If so, what is the expression? If not, why?
regex parsing regular-language
Neowang
source share