Automation 正则表达式(0+1)*1(0+1)*0 DFA

Automation 正则表达式(0+1)*1(0+1)*0 DFA,automation,Automation,我试图理解正则表达式:0+1*10+1*0您能提供与此模式匹配的示例吗?让我解释一下: 1 - (0+1) mean any number of 0, then a 1 2 - (0+1)* means the previous line any number of times (can be 0) 3 - (0+1)*1 mean the previous line and a 1 4 - (0+1)*0 means line 2 and a 0 10个作品:0乘以0+1,然后是1,然后是0

我试图理解正则表达式:0+1*10+1*0您能提供与此模式匹配的示例吗?

让我解释一下:

1 - (0+1) mean any number of 0, then a 1
2 - (0+1)* means the previous line any number of times (can be 0)
3 - (0+1)*1 mean the previous line and a 1
4 - (0+1)*0 means line 2 and a 0
10个作品:0乘以0+1,然后是1,然后是0乘以0+1,然后是0。 000000000001000000000110作品:十一个0和一个1,这是0+1*的两倍。然后,一个1。然后,没有0+1,最后是0。其他几个例子:

10
00001000010000110000100001000010
01010110
0110
我希望你明白我不是英语,我的英语很差,对不起


编辑:有很多网站可以帮助你使用正则表达式,无论是学习还是测试正则表达式

您可以使用这样的在线正则调试器:要查看它的功能并根据它测试字符串,基本上您的表达式是这样的:它可以从零开始或多次的多个零开始,并且1 01、000001或001对于这个子表达式都是有效的,因为它是一个空表达式,那么它必须有一位数字1,然后,多个0的多个表达式再次以数字1结尾,整个表达式需要以0结尾。因此,以下所有匹配:100101010。至于括号,它们标记了个人捕获的兴趣组。你能给我看一个与此模式匹配的图表吗?