Section
4.3.2
Top Level
Sub Level
General
Regular expressions are a concise powerful way to represent a broad range of validation rules.
Django
Use Python's re
module.
Natural Webagent
Not available in Natural/webAgent. Mimic their functionality using MASK
.
.NET
The RegularExpressionValidator
class can be used to easily check user-submitted data against custom regular expressions.
PHP
Avoid using preg_replace()
when possible, as insertion of the "e" modifier will cause the replacement string to be executed as PHP code after evaluation.