RegExp: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''Title Case''' | '''Title Case''' | ||
^[A-Z][a-z@./'\\]*([ \-][A-Z][a-z@./'\\]*)*$ | ^[A-Z][a-z@./'\\]*([ \-][A-Z][a-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})$ | |||
==References== | ==References== | ||
* [https://regexr.com/ RegExp Online] | * [https://regexr.com/ RegExp Online] |
Revision as of 21:32, 18 April 2021
Title Case ^[A-Z][a-z@./'\\]*([ \-][A-Z][a-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})$