Regular Expressions: Is there an AND operator?

后端 未结 12 2205
刺人心
刺人心 2020-11-21 06:34

Obviously, you can use the | (pipe?) to represent OR, but is there a way to represent AND as well?

Specifically, I\'d like to

12条回答
  •  萌比男神i
    2020-11-21 07:21

    Is it not possible in your case to do the AND on several matching results? in pseudocode

    regexp_match(pattern1, data) && regexp_match(pattern2, data) && ...
    

提交回复
热议问题