Multiple Choice
Which of the following statements is true in regard to the following example? if "Welcome the USA!." =~ /USA|America/ then puts "We have a match!" end
A) A pattern search has been set up to search the source string for either the words USA or America. A match occurs if either string is found.
B) A pattern search has been set up to search the source string for both the words USA and America. A match occurs only if both strings are found.
C) A case-insensitive search has been set up that searches the source string for either the words USA or America. A match occurs is either string is found.
D) None of the above.
Correct Answer:

Verified
Correct Answer:
Verified
Q6: The \D character is used in a
Q7: Using regular expressions you can define patterns
Q8: The _ metacharacter modifier is used to
Q9: Which of the character classes can be
Q10: Which of the following is true about
Q12: The =~ operator is the "not equals
Q13: Which of the following operators should be
Q14: Which of the following regular expression metacharacters
Q15: Which of the following regular expression metacharacters
Q16: You can validate data using regular expressions.