Learn RegExp - aliconnect/aliconnect.sdk GitHub Wiki

Regex

Introductie

Special Characters

  • \: escape
  • ^: not or first character
  • $: last character
  • .
  • |
  • ?
  • *
  • +
  • ( and )
  • [ and ]
  • { and }

Shorthand Character Classes

  • \d = [0-9]
  • \D = [^\d]
  • \w = [A-Za-z0-9_]: Word character
  • \s = [ \t\r\n\f]: whitespace character
  • \h: matches horizontal whitespace, which includes the tab and all characters in the space separator Unicode category. It is the same as [\t\p{Zs}].
  • \v: matches vertical whitespace, which includes all characters treated as line breaks in the Unicode standard. It is the same as [\n\cK\f\r\x85\x{2028}\x{2029}]
  • \i: matches any character that may be the first character of an XML name
  • \c: matches any character that may occur after the first character in an XML name.