正则表达式,如何匹配多个括号里带括号的内容
如:(and(not(bump-left?))(not(bump-right?)))FAIL(and(bump-left?)(not(bump-right?)))PASS...
如:(and (not (bump-left?)) (not (bump-right?))) FAIL
(and (bump-left?) (not (bump-right?))) PASS
(and (bump-right?) (not (bump-left?))) PASS
(and (not (bump-left?)) (not (bump-right?))) PASS
我就想匹配(and (bump-left?) (not (bump-right?))) 这整段,请问该如何写正则式 展开
(and (bump-left?) (not (bump-right?))) PASS
(and (bump-right?) (not (bump-left?))) PASS
(and (not (bump-left?)) (not (bump-right?))) PASS
我就想匹配(and (bump-left?) (not (bump-right?))) 这整段,请问该如何写正则式 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询