Examveda

What does the \w character class represent in a regular expression in Ruby?

A. Matches any whitespace character

B. Matches any word character

C. Matches any digit character

D. None of the above

Answer: Option B


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

Join The Discussion

Related Questions on Regular Expressions in Ruby