我仍然是正则表达式的菜鸟,但是有人会仔细检查我的答案是否正确吗?
问题是:指示每个给定的输入字符串是否属于正则表达式定义的语言(a | empty) b (a | b)* a (b)*
Empty = 翻转 3 左右(空字符串)
(a) input string: ababaa
Answer: Does not belong to the regex
because if tested, turns out to be ababab
(b) input string: aabbaa
Answer: Does not belong to the regex
Because if tested, turns out to be ab(b or a)* ab
这些答案正确吗?