inc1, inc2, inc3는 include 하지만 ex1,ex2,ex3은 exclude 하는 것을 찾는 케이스이다. ^(?=.*(?:inc1|inc2|inc3))(?!.*(?:ex1|ex2|ex3)).*$ 결과는 아래와 같다. https://stackoverflow.com/questions/5313896/help-with-regex-include-and-exclude Help with regex include and exclude I would like some help with regex. I'm trying to create an expression that will include certain strings and exclude certain strings. For example: I would..