Advertisement
fabi0

Untitled

Nov 10th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1.     public static $regexes = Array(
  2.         'date' => "^[0-9]{4}[-/][0-9]{1,2}[-/][0-9]{1,2}\$",
  3.         'amount' => "^[-]?[0-9]+\$",
  4.         'number' => "^[-]?[0-9,]+\$",
  5.         'alfanum' => "^[0-9a-zA-Z ,.-_\\s\?\!]+\$",
  6.         'not_empty' => "[a-z0-9A-Z]+",
  7.         'words' => "^[A-Za-z]+[A-Za-z \\s]*\$",
  8.         'phone' => "^[0-9]{10,11}\$",
  9.         'zipcode' => "^[1-9][0-9]{3}[a-zA-Z]{2}\$",
  10.         'plate' => "^([0-9a-zA-Z]{2}[-]){2}[0-9a-zA-Z]{2}\$",
  11.         'price' => "^[0-9.,]*(([.,][-])|([.,][0-9]{2}))?\$",
  12.         '2digitopt' => "^\d+(\,\d{2})?\$",
  13.         '2digitforce' => "^\d+\,\d\d\$",
  14.         'anything' => "^[\d\D]{1,}\$"
  15.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement