Active
Project:
Field Validation
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2012 at 12:36 UTC
Updated:
30 Nov 2012 at 20:04 UTC
Hi,
Please, add some validation filters like:
1.Allow just a-z,A-Z (just alphabetical)
2.Allow just a-z,A-Z,0-9 (just alpha-numeric)
3.Allow just ASCII 96 characters (It is a shame, that there are no module in Drupal to transliterate usernames!)
I know that this could be done with regexp, but this is too much for average webmaster ;)
Comments
Comment #1
playfulwolf commentedok, regexp documentation helped: the EXACT syntax to put into field:
Alphabetic (a-z upper and lowercase) + numbers + "-"
^([a-zA-Z0-9-])*$Alphabetic (a-z upper and lowercase) + numbers
^([a-zA-Z0-9])*$Alphabetic (a-z upper and lowercase)
^([a-zA-Z])*$Comment #2
playfulwolf commented