SHARE
TWEET

RegExp js

a guest Jul 23rd, 2015 22 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /1{1}9{1}[0-9]{2}|2{1}0|1{1}[0-9]{2}-1{1}9{1}[0-9]{2}|2{1}0|1{1}[0-9]{2}/ //так я проверяю поле "годы обучения", должная запись - такого формата 2000-2010
  2. /[0-2]{1}[0-9]{1}|3{1}[0-1].[0-1]{1}[1-9]{1}.1{1}9{1}[0-9]{2}|2{1}0|1{1}[0-9]{2}/ //a так я проверяю поле "дата рождения", должная запись - такого формата 09.03.01
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top