Regular expression syntax
Nonword boundary
Asserts that the current position is not a word boundary.
Formal Syntax & Structure
javascript syntaxjavascript
\BWorking Example
Example Snippetjavascript
console.log(/\Bcat/.test("bobcat"));Asserts that the current position is not a word boundary.
\Bconsole.log(/\Bcat/.test("bobcat"));