Add Regular Expressions to Quizzes

Idea created by Randy Watkins on Jun 2, 2016
    On Beta
    Score172
    This idea has been developed and is On Canvas Beta Quizzes.Next User Group 

     

              
      Idea open for vote Wed. July 6, 2016 - Wed. October 5, 2016  Learn more about voting...

     

    Currently in quizzes, for fill-in-the-blank or short-answer questions, you have to come up with every possible phrase combinations to match what students might type that would be correct. Previous recommendations asked that the answer "contain" keywords rather than match.

    I would like to see regular expressions, which have been in every major programming language since the 1950's and every LMS until Canvas. Regular expressions are also known as regex, pattern matching, and wildcards.

    Here is a good example:

        Who was the major African-American civil rights leader of the 1960's assassinated in 1968?

    The official answer is "Dr. Martin Luther King, Jr.", but what if they forget to put "Dr.", abbreviate Luther as "L.", or forget "Jr.". Is it wrong? How many permutations of the right answer could there be? Is punctuation included?

    Using regex, the answer would be /.*Martin.*L.*King.*/i, meaning anything before Martin, must contain an L
    between Martin and King, can contain anything after King, and "i" means case insensitive. If you use "g" with the "i", you
    can apply multiple phrases across an entire document so you can check papers for content automatically.

    Please add this to quizzes. Most programming languages (including JavaScript) accept this as a phrase or function.

    This extends upon Allow fill-in-the-blank answers that can *contain* a term vs having to match a term  and Improve Regular Expression Tool (pattern matching).

     

    Comments from Instructure

     

    This feature is now available through the new Quizzes LTI tool.  Find more information on the Quizzes LTI tool, and how to access it, at Quizzes.Next User Group 

     

    The specific guide for this feature in the Quizzes LTI tool is How do I create a Fill in the Blank question in Quizzes.Next?