In CGBetterForms I want to use validation rules of type
"Match field values against a regular expression"
but somehow my regex are not working.
Code: Select all
<input type="text" name="email">
I tried this regex:
/^([a-z0-9_\+\-\.]{1,40})@([a-z0-9\-\.]{2,40})\.(nl|com|org|info|eu)$/gi
Code: Select all
<textarea name="message">
/(http:|https:|ftp:|www|\/\/|\\\\|\.htm|\.php)+/gi
Edit /^(?:(?!http:|https:|ftp:|www|\/\/|\\\\|\.htm|\.php).)+$/gi
How to create the 2 regex strings for these fields?
And what is the proper way to insert a regex in CGBetterForms?
Thanx in advance.
Ronald