Multiple choice technology programming languages

Whch of the following is used as word boundary in Regular Expression?

  1. ^

  2. B

  3. b

  4. $

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In regular expressions, \b represents a word boundary - it matches the position between a word character and a non-word character. The caret ^ matches the start of a line, and $ matches the end of a line. Option C has a typo - it should be \b not just b.