What I Do/자주 찾는 내용
regular expression 으로 포함하고 포함하지 않는 것 찾기
1Millisecond
2022. 11. 7. 00:12
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 like to include any URL containing mobil...
stackoverflow.com