GithubHelp home page GithubHelp logo

Support `Regexp#match?` about mruby-onig-regexp HOT 8 CLOSED

mattn avatar mattn commented on July 24, 2024 1
Support `Regexp#match?`

from mruby-onig-regexp.

Comments (8)

mattn avatar mattn commented on July 24, 2024

Is this you want?

mrb_define_method(mrb, clazz, "match", onig_regexp_match, MRB_ARGS_REQ(1) | MRB_ARGS_OPT(1));

from mruby-onig-regexp.

mattn avatar mattn commented on July 24, 2024

Ah, ?. Currently not supported.

from mruby-onig-regexp.

take-cheeze avatar take-cheeze commented on July 24, 2024

Seems like String#match? exists too. It's more lighter because it doesn't need to create MatchData object.

from mruby-onig-regexp.

mattn avatar mattn commented on July 24, 2024

Yes, but must not update variables that have prefix $.

from mruby-onig-regexp.

mattn avatar mattn commented on July 24, 2024

closed by #82

from mruby-onig-regexp.

proyb6 avatar proyb6 commented on July 24, 2024

This additional mean match or match?

from mruby-onig-regexp.

mattn avatar mattn commented on July 24, 2024

This is match?

from mruby-onig-regexp.

proyb6 avatar proyb6 commented on July 24, 2024

Appreciate! Do you have a benchmark comparing =~ match and match?

from mruby-onig-regexp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.