8000 [[:punct:]] isn't matching all expected symbols · Issue #268 · kkos/oniguruma · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
[[:punct:]] isn't matching all expected symbols #268
Closed
@david-waterworth

Description

@david-waterworth

It appears that the [[:punct:]] class does not match the following characters $+<>=^`|~ which is different behaviour from other regex libraries I've used (including the online regex101 tool).

According to https://en.wikibooks.org/wiki/Regular_Expressions/POSIX_Basic_Regular_Expressions :punct: should be all "all graphic characters except letters and digits"

I'm using the rust onig bindings, the code below produces no matches using onigruma but works with the alternative regex crate. Are you using a different definition of the POSIX character classes? If so I cannot find a reference in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0