Skip to content

Instantly share code, notes, and snippets.

View TopHatCroat's full-sized avatar

Antonio Martinović TopHatCroat

View GitHub Profile
String adminRegex = "^(-admin)? ?-server (?:(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})|(localhost)) -port ([8|9][0-9]{3}) -u ([a-zA-Z0-9-_]+) -p ([a-zA-Z0-9-_!#]+) -(pause|stop|start|stat)$";
String userRegex = "^(-korisnik)? ?-s (?:(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})|(localhost)) -port ([8|9][0-9]{3}) -u ([a-zA-Z0-9-_]+) ?(-(a|t) (?:(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})|(localhost)))? ?(-w ([0-6][0-9]{2}))?$";
String showRegex = "^(-prikaz)? ?-s ((:?([a-zA-Z]:|(http:(?:\\\\|\\/))))?(?:(?:\\\\|\\/)?(\\w[\\w ]*.*))+\\.(?:(?i)bin(?-i)))$";
"Ivan";"Horvat";"iviCA_-_-_";"123!Qqwe";"1980-10-12";"m";"097 6161616";"hr";"[email protected]";"0";"antmartin2.jpg";"15;54"
"Miki";"Mikic";"mmMMMAAAA-_";"123!Qqwe";"1999-05-02";"f";"095 44545487";"hr";"[email protected]";"0";"antmartin2.jpg";"15;54"
"Darko";"Darkic";"AcAcAcAc_-";"123!Qqwe";"1988-11-20";"m";"097 7536541";"hr";"[email protected]";"0";"antmartin2.jpg";"156;84"
"Ana";"Ban";"banANA_-_-_";"123!Qqwe";"1991-07-25";"m";"099 95151512";"hr";"[email protected]";"0";"antmartin2.jpg";"123;32"