Examveda

What does the \b anchor represent in a regular expression in Ruby?

A. Matches a non-word character

B. Matches a non-word boundary

C. Matches a word character

D. Matches a word boundary

Answer: Option D


This Question Belongs to Ruby Programming >> Regular Expressions In Ruby

Join The Discussion

Related Questions on Regular Expressions in Ruby