Skip to content

Instantly share code, notes, and snippets.

@Gendrop
Gendrop / vl.js
Created September 12, 2013 16:05
JavaScript: Validaciones
//AaEeIiOoUuNn
var reTxt, rePwd, reUser, reNum, reDedimal, reEmail, reCURP, reDate, errorColor;
reTxt = /^[ A-Za-z0-9-_#.()\u00C1\u00E1\u00C9\u00E9\u00CD\u00ED\u00D3\u00F3\u00DA\u00FA\u00D1\u00F1\u00DC\u00FC]*$/;
rePwd= /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])\w{6,30}$/;
reUser = /^[A-Za-z0-9_.]*$/;
reNum = /^[0-9]*$/;
reDedimal = /^\d+(\.\d{1,2})?$/;
reEmail = /^\w[a-zA-Z._]+@[a-zA-Z_]+?(\.[a-zA-Z]{2,3}){1,3}$/;
reCURP = /^[a-zA-Z]{4}\d{6}[a-zA-Z]{6}[a-zA-Z0-9]{2}$/;
@Gendrop
Gendrop / ios-web-app.html
Created August 22, 2013 01:51 — forked from tfausak/ios-8-web-app.html
HTML: Meta Icon Startup Apple
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<title>iOS Web App</title>
<!-- iPhone -->