Thread:Extension talk:Semantic Forms Inputs/Regular Expression for validating that Form Inputs don't contain special characters

Hi,

I spent weeks trying to find how to do this - so I thought it would be a good idea to tell other people.

Here's a form input with regular expression, that validates that there are no, or | characters in the field:

(Ref https://bugzilla.wikimedia.org/show_bug.cgi?id=30042 and http://wikimedia.7.n6.nabble.com/Semantic-Forms-Need-better-input-checking-td555083.html)

{{{field|Description
 * input type=regexp
 * base type=regexp
 * or char=;
 * regexp=/(?:^\{\{VALIDATIONOFF\}\};^(?:(?!\{\{;\}\}).)*$)/
 * message=Dont use }} or }