Hi, this is my first time posting and I have a really stupid easy question, how do I build an expression which allows letters, numbers and an underscore? Much like (in PHP):
I'm putting this in the Table design window under 'Validation Rule'.
Any ideas? Thanks very much.
Code:
$regex =
'^'.
'[_a-z0-9-]+'. /* One or more underscore, alphanumeric,
or hyphen charactures. */
'(\.\'[_a-z0-9-]+)*'. /* Followed by zero or more sets consisting
of a period and one or more underscore,
alphanumeric, or hyphen charactures. */
'$';
I'm putting this in the Table design window under 'Validation Rule'.
Any ideas? Thanks very much.