Skip to content

Shorthand character classes #1

@SicroAtGit

Description

@SicroAtGit

In addition to character classes, there will also be shorthand character classes. However, I'm not quite sure yet which ones there should be and which characters they should cover.

According to this website, the different RegEx engines cover different characters in the shorthand character classes:
https://www.regular-expressions.info/shorthand.html

The current listing:

  • \d for [0-9]
  • \D for [^\d]
  • \t for the tab character
  • \r for carriage return (CR)
  • \n for linefeed (LF)
  • \f for form feed
  • \s for [ \t\r\n\f]
  • \S for [^\s]
  • \w for [A-Za-z0-9_]
  • \W for [^\w]
  • \h for [ \t]
  • \v for [\r\n\f]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions