RegExp: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Title Case''' | '''Title Case''' | ||
^[A-Z][a-z@./'\\]*([ \-][A-Z][a-z@./'\\]*)*$ | ^[A-Z][a-z@./'\\]*([ \-][A-Z][a-z@./'\\]*)*$ | ||
'''Upper or Title Case''' | |||
^[A-Z][A-Za-z@./'\\]*([ \-][A-Z][A-Za-z@./'\\]*)*$ | |||
^[A-Z][A-Za-z.']*([ /@\-\\][A-Z][A-Za-z.']*)*$ | |||
^[A-Z][A-Za-z.]*([ .'/@\-/][A-Z][A-Za-z]*)*$ | |||
'''Upper or Title Case or Empty''' | |||
^[A-Z][A-Za-z.']*([ /@\-\\][A-Z][A-Za-z.']*)*$|^$ | |||
^[A-Z][A-Za-z.]*([ .'/@\-/][A-Z][A-Za-z]*)*$|^$ | |||
'''Email Address:''' | |||
^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$ | |||
^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\\.([a-zA-Z]{2,5})$ | |||
'''Email Address:''' (without % or \\%) | |||
^[a-zA-Z0-9\\.\\!#$&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\\.([a-zA-Z]{2,5})$ | |||
==References== | ==References== | ||
* [https://regexr.com/ RegExp | * [https://bitbucket.org/medisysco/medisys-comn-cheque/src/master/ Java Implementation] | ||
* [https://regexr.com/ RegExp Playground] | |||
* [https://bitbucket.org/medisysco/medisys-comn-enumer/src/master/ Java Enumerations] |
Latest revision as of 00:53, 19 April 2021
Title Case ^[A-Z][a-z@./'\\]*([ \-][A-Z][a-z@./'\\]*)*$ Upper or Title Case ^[A-Z][A-Za-z@./'\\]*([ \-][A-Z][A-Za-z@./'\\]*)*$ ^[A-Z][A-Za-z.']*([ /@\-\\][A-Z][A-Za-z.']*)*$ ^[A-Z][A-Za-z.]*([ .'/@\-/][A-Z][A-Za-z]*)*$ Upper or Title Case or Empty ^[A-Z][A-Za-z.']*([ /@\-\\][A-Z][A-Za-z.']*)*$|^$ ^[A-Z][A-Za-z.]*([ .'/@\-/][A-Z][A-Za-z]*)*$|^$
Email Address: ^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$ ^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\\.([a-zA-Z]{2,5})$ Email Address: (without % or \\%) ^[a-zA-Z0-9\\.\\!#$&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\\.([a-zA-Z]{2,5})$