JavaScript RegExp b Metacharacter
JavaScript RegExp \b Metacharacter
The \b metacharacter is used for matching at the beginning or end of a word. For the beginning, we use \b{word} while for the end we use {word}\b.
Syntax:-
Its syntax is:- new RegExp("\\b") OR /\b/