Additional Info
Type
Package ID
dreamland:regexverification
First Created
March 15, 2011, 09:43:04 PM
Last Updated
July 29, 2014, 11:46:58 PM

Regexp Verification Questions v1.0

Enables Regular Expressions in Verification Answer Checking.
Compatible With 2.0 RC5, 2.0.8
Latest version v1.0
Downloads 924
Reviews 0
Rating 0/5
Subscribers 9
License (View License)
Author(s)
This is a simple mod that replaces simple strict-equivalence comparison on verification questions with a regexp test. At its simplest, this mod allows for multiple answers to verification questions.

In any typical case, this extension will not break existing verification answers; only those with special characters will be affected.

So, if you had the question, "One plus one equals...", and the answer "two", the answer will still work. But you can improve it by replacing it with "(tw?o?o|2)", which will lead to the acceptance of any of "to", "two", "too", "twoo", or "2". More simply, less elegantly, a less experienced user could enumerate them, "(two|too|to|2)".

My forum asks, "Name a yellow fruit." This is the answer:
(yellow )?(ba(nn|n)a(nn|n)a|lemon|(pine|pine |)apple|(pear|pare|pair))s?

Overkill? Probably. Useful? Yes.
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: