Skip to main content

regexSyntax to express search pattern to match Character. XLang support

aka Regex, Regular-Expression, Regular-Expressions

Regular Expressions present in virtually every Programming Language albeit Syntax variations

Regex tools

References

  1. .regex Metacharacter to match any single character (excl \n & line terminator)

  2. + ↔ ≥1 RegExp Quantifier to match 1+

  3. {n,m}RegExp Quantifier to match between n-m times

  4. \regex Escape Metacharacter to escape reserved regex characters

  5. (?:abc)regex Non-Capturing Groupto prevent grouping reference

  6. |RegExp Assertion OR operator for alternative characters/expressions

  7. ^[abc]RegExp Character Class to match at line start char

  8. .*RegExp Quantifier to match anything & everything

  9. \B ↔ inverted RegExp Assertion to match only at not boundary of word (beginning or end of word)

  10. RegExp Syntax ↔ JS-specific regex syntax

  11. \xxxregex Metacharacter for Octal number xxx

  12. \xddregex Metacharacter for Hexadecimal number dd

  13. \uxxxxregex Metacharacter for unicode character specified by Hexadecimal number xxxx

  14. \0regex Metacharacter for NUL character

  15. GlobbingAlgo to match Wildcard Character pattern ie Glob || regex