Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom character classes [...] #21

Closed
SicroAtGit opened this issue Oct 30, 2021 · 0 comments
Closed

Add support for custom character classes [...] #21

SicroAtGit opened this issue Oct 30, 2021 · 0 comments
Assignees
Labels
feature New feature
Milestone

Comments

@SicroAtGit
Copy link
Owner

SicroAtGit commented Oct 30, 2021

[x], while x can be several mixes of the following:

  • Symbol:
    • Single character
    • Escape sequence
  • Range:
    • a-c for the characters a, b and c

To negate the user-defined character class, the ^ character must follow immediately after the opening square bracket. If the ^ occurs in other positions, it is a normal character, without the special meaning.

The metacharacter . (dot) is a dot character inside the square brackets, i.e. without the special meaning.

Nesting of character classes is not allowed.

For ranges, the range end symbol must have a larger character code than the range start symbol, i.e. [a-z] instead of [z-a].

@SicroAtGit SicroAtGit self-assigned this Oct 30, 2021
@SicroAtGit SicroAtGit added the feature New feature label Oct 30, 2021
@SicroAtGit SicroAtGit added this to the v1.0.0-beta milestone Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant