Skip to content

RegexMatchableObject improvement #929

@Necr0x0Der

Description

@Necr0x0Der

There is RegexMatchableObject with regex: token, which could be used for doing fun stuff like:

(= (f regex:"^[1-9]") Number)
(= (f $x) Empty)
!(f "12") ; Number
!(f "aaa") ; Empty

However, there are no examples of using regex: and just a few tests, and its implementation is somewhat weird, e.g., it uses flags=re.IGNORECASE for unknown reason.
It might be desirable to improve RegexMatchableObject and make it more usable. Maybe, one could make it work on Symbol atoms as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions