Found this content helpful? Log in or sign up to leave a like!

Quiz case-sensitivity and "keyword" fill in the blank questions

Jump to solution
JerryCoe
Community Member

How do I set up a fill in the blank quiz answer in a "New Quizzes" that both ignores case sensitivity and recognizes a "keyword" answer? So far, it looks like you can do one but not both, which is very frustrating. 

Labels (1)
1 Solution
Gabriel33
Community Participant

You can use regular expressions if you want more flexibility.

For example, (?i)\byes\b matches "yes", "Yes", "YES!!!", but not "no" or "yesterday".

The "(?i)" makes the matching case insensitive (so it accepts the other cases). The two "\b"s reflect the word boundaries (so it doesn't match with "yesterday").

 

editing to add that it also matches correctly with "yes, sir" and "of course the answer is yes", so it also satisfies the "keyword" requirement as I understand it.

View solution in original post