Template:RegexpToFieldRegexp

From OPENRESEARCH th copy Wiki
Jump to navigation Jump to search

Use this template to convert a Regexp into the regexp arguments of an field in an form For example {{RegexpToFieldRegexp|Regexp:NaturalNumber}} is converted to

|regexp=/^[0-9]+$!^$/ |message=Must be a number |or char=!