Vidyalelo
Ruby Programming · Q6

Regular Expressions in Ruby

Programming · Ruby Programming · question 6

Q6

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

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

Answer: Option D

Solution

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