I normall write in VBscript but i was given a javascript and asked to fix a problem with the output. As i am reading through the script i don't understand som of the syntax.
Can someone tell me what does these do? I understand that it is assgining something to the variables but i done't understand what it is doing with the / and \ and /^.
dnRE = /dn: \w, \w/i;
cnRE = /^cn: (.*), (.*)/;
givenRE = /^givenname: (.*)/;
snRE = /^sn: (.*)/;
mailRE = /^mail: (\S+)/;
//testRE = /@test\.state\.nc\.us/i;
testRE = /@test\.nc\.gov/i;
Can someone tell me what does these do? I understand that it is assgining something to the variables but i done't understand what it is doing with the / and \ and /^.
dnRE = /dn: \w, \w/i;
cnRE = /^cn: (.*), (.*)/;
givenRE = /^givenname: (.*)/;
snRE = /^sn: (.*)/;
mailRE = /^mail: (\S+)/;
//testRE = /@test\.state\.nc\.us/i;
testRE = /@test\.nc\.gov/i;