daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     val patternFlags = Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.UNICODE_CASE
  2.     val patternFlags2 = Pattern.MULTILINE | Pattern.UNICODE_CASE
  3.  
  4.     val cardNumberRegexp = Pattern.compile("([\\d\\*#x]{16,19}|\\*{12}\\d{1})", patternFlags)
  5.     val nameRegexp = Pattern.compile("(клиент:|имя держателя:|картодержатель:)(\\s)*(\\s*\"\\,\"\\s*)*([a-z\\-]+)(\\s*\\/\\s*|\\s*\"\\,\"\\s*|\\s+)([a-z\\.]*)", patternFlags)
  6.     val nameRegexp2 = Pattern.compile(".{50}([\\d\\*#X]{16,19}|\\*{12}\\d{1})(\\:\\d{2})(\\s*\"\\,\"\\s*)*([A-Z]+)(\\s*\\/\\s*|\\s+)([A-Z\\.]*)", patternFlags2)
  7.     val codeRegexp = Pattern.compile("(код\\s*\\.*)(\\s*\"\\,\"\\s*)*(авторизации|подтверждения|авт\\.|автор\\.|авториз\\.)(\\s*\\:*\\s*)(\\,)*(\\s*\"\\,\"\\s*)*(\\s)*(\\w{1,6})", patternFlags)
  8.     val cardTypeRegexp = Pattern.compile("(mastercard|visa electron|maestro|visa|mir)", patternFlags)
  9.     val creditTypeRegexp = Pattern.compile("(карта:)(\\s*\\()(.|.{2})(\\))", patternFlags)
  10.     val shopNameRegexp = Pattern.compile("\"*([a-zа-я0-9\\s\\.\\-\\\\\\_\\&]+)\"*\\,", patternFlags)
  11.     val phoneRegexp = Pattern.compile("(\\(\\d?\\d?\\d{3}\\d?\\)\\d{2}\\d?-?\\s?\\d{2}-?\\d\\d?)\\D", patternFlags)
  12.     val phoneRegexp2 = Pattern.compile("(9\\d{9})\\D", patternFlags)
  13.     val addressRegexp = Pattern.compile("\"*([a-zа-я0-9\\s\\.\\-\\\\\\_\\&]+)\"*\\,\"*([а-я\\.\\,\\s\\-\\/]*\"*\\,\"*[а-я0-9\\s\\.\\,\\-\\/]*)", patternFlags)
  14.     val rrnRegexp = Pattern.compile("(ссылки|rrn|\\(rrn\\)|ссылка|rrn\\-код|ссылка\\s*\\#)(:\\s*)(\"\\,\")*(\\d{1,12})", patternFlags)
  15.     val webRegexp = Pattern.compile("([www]?.[A-Za-z0-9_\\.-]+\\.[a-z]{2,6})", patternFlags2)
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
 
Top