0
   

Can someone decode this JavaScript Regular Expression script?

 
 
lerner
 
Reply Sat 19 May, 2012 08:52 am
<script language="Javascript" type="text/javascript">

function PassConfirm()


{

var chk = false;

var x=document.myform.input1.value

var re = new RegExp(".*[a-z]{2}[ ].*[d-i](?=.*)");

var m = re.exec(x);

if (m != null)


{

re = new RegExp(".*[G-Z].*[A-Z].+[f-s](?=.*)");

m = re.exec(m[0]);

if (m != null)


{

re = new RegExp("([^XazhY]|[^ijkW]).+[\\W][A-Z].+[^i](?=.*)");

m = re.exec(m[0]);

if (m != null)


{

re = new RegExp("([^Xa-ehY]|[^f-zW]).+[\\W][A-Z].+[^f](?=.*)");

m = re.exec(m[0]);

if (m != null)


{

re = new RegExp("([Zdf]|[pass]).+[\\s][\\D]+");

m = re.exec(m[0]);

if (m != null)


{

re = new RegExp("([^spa])\\w+[ ].*[n-o][sigma]");

m = re.exec(m[0]);

if (m != null)

{

re = new RegExp("([^f-iK-L]).*[^alamo][e-g]");

m = re.exec(m[0]);

if (m != null)

{

re = new RegExp(".*([^76]|[^A-Za]).*[^a-z][^x]{3}");

m = re.exec(m[0]);

if (m != null)

{

re = new RegExp("([^2]|[^D-Za]|[D-Ze-f]){2}[b-r].*[^a-z][A-Bhijk].*");

m = re.exec(m[0]);

if (m != null)

{

re = new RegExp("([^2]|[^D-Za]|[D-Ze-f]){2}[^b-q].*[ ].*[^klmadj][^dkdcewl]{2}");

m = re.exec(m[0]);

if (m != null)

{

re = new RegExp(".[3djes]([byxprln]).*[ ].*[^BhA][^dkdcewl]{2}");

m = re.exec(m[0]);

if (m != null)

{

re = new RegExp(".*([m-r])[gDaSod].*\\s.*[g-n]*");

m = re.exec(m[0]);

if (m != null)

{

re = new RegExp("([A]|[^A])*[amzrbrqw][^A-Za-dg]\\s[^A-V]+[g-n].*");

m = re.exec(m[0]);

if (m != null)

{

re = new RegExp("[^d ]\\w+[ ][^XYZ ]\\w+[^ghijklm ].{1}");

m = re.exec(m[0]);

if (m != null)

{

re = new RegExp(".*e.*");

m = re.exec(m[0]);

if (m != null)

{
var url = m[0];
if (url == x)

{

url = url.split(" ");

window.open(url[0]+url[1]+".php", "_self");

chk = true;
}

}

}

}

}

}

}

}

}

}

}

}

}

}

}

}

if (chk == false)

{ alert('You failed to decode it correctly! Try again.');}

}
</script>
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 1,369 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » Can someone decode this JavaScript Regular Expression script?
Copyright © 2019 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/22/2019 at 09:53:34