Moodle Plugins directory: Regular expression | Moodle.org
Regular expression
Database fields ::: datafield_regex
Maintained by Stephan Robotta
This plugin provides an additional field type for regular expressions for the database activity. The field is very similar to the "Short text" field. However, the input is validated by a regular expression.
Latest release:
25 sites
22 downloads
4 fans
Current versions available: 1
This plugin provides an additional field type for regular expressions for the database activity. The field is very similar to the "Short text" field. The main difference is that input can be validated against a regular expression that must match before the value is accepted.
Choose any regular expression for an input fleld to match the input values of that field. Easy check for case-sensitive match. Chosse whether to match the entire string or patially only.
Useful links
Contributors
Stephan Robotta (Lead maintainer)
Please login to view contributors details and/or to contact them
To be honest, I do not plan to port it to older versions. Which version are you interested in?
Because of the testsuite I only included support for the versions were the test run through successfully. I would guess that it may work out of the box for 4.0 (or with little adjustments). For older versions I can't tell. The plugin is not very complex so it might be a try to let it run for 3.9/11.
Best regards, Stephan