Why not use the built-in perl regex validation that GT uses in their GT::SQL modules? Click on Database->Demographics in the menus. From there, click on the demographic column name that you want validation on and add your own perl regex (less the /'s) int he Form Regex field.
i.e:
dgraph_first_name would use something like ^\w+$
Regards,
Charlie
i.e:
dgraph_first_name would use something like ^\w+$
Regards,
Charlie