Vidyalelo
Ruby Programming · Q10

Regular Expressions in Ruby

Programming · Ruby Programming · question 10

Q10

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

A.
Matches any non-whitespace character
B.
Matches any digit character
C.
Matches any word character
D.
Matches any whitespace character
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board