mruby-posix-regexp

mruby's RegExp implementation using libc's regexp

OTHER License

Stars
5

mruby-posix-regexp CI

Regexp class with libc regex (POSIX Regex) backend

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

  # ... (snip) ...

  conf.gem github: 'udzura/mruby-posix-regexp'
end

example

b = "xxx".gsub /x/, "y"
#=> "yyy"

"foo bar buz".scan /\w+/
#=> ["foo", "bar", "buz"]

License

under the MIT License:

  • see LICENSE file

Thanks