해뜨기전에자자

regex exact word match or exclude 본문

개발/etc

regex exact word match or exclude

조앙'ㅁ' 2018. 4. 9. 17:20


target word: apple, orange, pipeapple이라고 하면,


exact word exclude: ^(?!(apple$|orange$|pipneapple$)).*$

exact word match: apple$|orange$|pineapple$