Skip to content

Add a regular expressions library to the distribution #3591

Closed

Description

@brson

The exact engine we use needs further discussion. Probably we don't want to use yarr because it requires the nitro jit, which is a big dependency and could be undesirable for various reasons. Ideally, we would have a nice syntax extension that precompiles the regexes (in addition to runtime compilation options).

Activity

  1. eholk commented on Sep 25, 2012

    @eholk
    Contributor

    What about writing a regular expression engine in Rust?

  2. brson commented on Sep 25, 2012

    @brson
    ContributorAuthor

    That could be fine.

  3. erickt commented on Sep 28, 2012

    @erickt
    Contributor

    For anyone who stumbles across this issue looking for a regex library, we do have a pcre binding in cargo.

  4. killerswan commented on Oct 5, 2012

    @killerswan
    Contributor
  5. erickt commented on Oct 5, 2012

    @erickt
    Contributor

    @killerswan neat! that seems to be an independent implementation. I'll ping @uasi to merge our code.

  6. graydon commented on Apr 25, 2013

    @graydon
    Contributor

    nominating for feature-complete

  7. graydon commented on Apr 25, 2013

    @graydon
    Contributor

    (also, as I mention elsewhere but apparently not in this bug, I prefer re2 for this)

  8. catamorphism commented on Jun 24, 2013

    @catamorphism
    Contributor

    (bug triage) Milestone is correct; could be a good medium-sized starter project for somebody.

  9. nickdesaulniers commented on Jun 25, 2013

    @nickdesaulniers

    I'm still interested in this. Been working on an cre2 binding. Not 100% sure how to handle functions that expect c enums.

  10. ktt3ja commented on Nov 1, 2013

    @ktt3ja
    Contributor

    I would like to claim this issue to do as a project for my university class.

  11. nickdesaulniers commented on Nov 1, 2013

    @nickdesaulniers

    @ktt3ja , I haven't been working on this.

  12. glennsl commented on Nov 3, 2013

    @glennsl

    I've been working on this, but it's pretty slow going. See https://github.com/glennsl/rust-re

    It has a good set of features already, but is currently pretty naively implemented, horribly slow and not very nice to look at. I'm trying to learn rust as I go, and am currently trying to figure out how to optimize it without wandering into unsafe territory.

    Feel free to fork it or implement something completely separate. A different perspective would just be good as far as I'm concerned.

  13. huonw commented on Nov 3, 2013

    @huonw
    Contributor

    There is a wiki page summarising some research about this: https://github.com/mozilla/rust/wiki/Lib-re

  14. ktt3ja commented on Nov 7, 2013

    @ktt3ja
    Contributor

    Nvm, I'll be working on something else for my project.

  15. ferristseng commented on Dec 7, 2013

    @ferristseng

    I've been working on this for my class. The project is here https://github.com/ferristseng/regex-rust. I've been trying to add the features outlined in the ECMA-262 standard. If anyone has any suggestions or would like to help, let me know (this is my first time working on a regular expression engine).

  16. 69 remaining items

  17. added a commit that references this issue on May 11, 2024
  18. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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