특정 단어 제외
/^((?!three|one).)*$/gm
경계 지정
-
\b
메타 문자는 경계 위치를 가르킨다(boundary)
Examples
Raindrops on roses, and whiskers on kittens.
-
위 문자를
\b
로 평가할 때 아래와 같음 (|
로 경계를 나타냄)|Raindrops| |on| |roses|, |and| |whiskers| |on| |kittens|.
-
\bo.\b
로 매치했을 때 bold 처리된 텍스트가 매칭된 결과|Raindrops| |on| |roses|, |and| |whiskers| |on| |kittens|.
-
\B
는\b
와 반대.