Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我可以从正则表达式 (a+b)* 生成哪些字符串?能不能生成abbbb和ababab。?
任何帮助将不胜感激。
Prrrrretty 确定您可以自己测试这个,而不是在这里等待答案。
简而言之,是的,您提供的模式将在这两个字符串中找到匹配项。
注意/它与第一个输入的整个输入不匹配。不过,从技术上讲,它仍然是一场比赛,所以你必须小心你所说的“比赛”是什么意思