Hi all,
I have the following variable assignments in a script:
var strEmail = document.new_record.email.value;
var strJob = document.new_record.occupation.value;
var strNumbers = ^[0-9]\d{2}-\d{3}-\d{4}$
var strMatch = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
....my question is, how do I terminate the regular expression assignments (strNumbers and strMatch)?
Do I simply add a ";" as with the first two assignment? Or, will the ";" confuse the regular
expressions?
TIA,
Susan