RIDDLE 15
FRIDAY THE THIRTEENTH, 4:00 PM
/([FOR]*)([ID]{2})([^N]*)(.)(.*)/g
$2E$44
the second line is a regular expression, i tested the first line with it and it is ok
$2 and $44 capture parts of the check (good explanition is here http://stackoverflow.com/questions/5982824/what-does-1-2-etc-mean-in-regular-expressions)
i wrote the below javascript code to provide the $2 and $44
this will alert ID,N4 adding to it the E
FRIDAY THE THIRTEENTH, 4:00 PM
/([FOR]*)([ID]{2})([^N]*)(.)(.*)/g
$2E$44
$2 and $44 capture parts of the check (good explanition is here http://stackoverflow.com/questions/5982824/what-does-1-2-etc-mean-in-regular-expressions)
i wrote the below javascript code to provide the $2 and $44
num="FRIDAY THE THIRTEENTH, 4:00 PM"; re = /([FOR]*)([ID]{2})([^N]*)(.)(.*)/g; re.test(num); alert(num.replace(re, "$2,$44"));
this will alert ID,N4 adding to it the E
the code is "IDEN4"
No comments:
Post a Comment