RegExp: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:
  ^[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@./'\\]*)*$
  '''Email Address:'''
  '''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])?)*$

Revision as of 00:22, 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@./'\\]*)*$
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