https://github.com/udzura/mruby-posix-regexp
mruby's RegExp implementation using libc's regexp
https://github.com/udzura/mruby-posix-regexp
hacktoberfest hacktoberfest2021 mruby
Last synced: about 1 year ago
JSON representation
mruby's RegExp implementation using libc's regexp
- Host: GitHub
- URL: https://github.com/udzura/mruby-posix-regexp
- Owner: udzura
- License: other
- Created: 2021-09-17T10:02:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-10T11:16:31.000Z (about 3 years ago)
- Last Synced: 2025-04-12T23:12:07.262Z (about 1 year ago)
- Topics: hacktoberfest, hacktoberfest2021, mruby
- Language: Ruby
- Homepage:
- Size: 52.7 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mruby-posix-regexp [](https://github.com/udzura/mruby-posix-regexp/actions/workflows/ci.yml)
Regexp class with libc regex (POSIX Regex) backend
## install by mrbgems
- add conf.gem line to `build_config.rb`
```ruby
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem github: 'udzura/mruby-posix-regexp'
end
```
## example
```ruby
b = "xxx".gsub /x/, "y"
#=> "yyy"
"foo bar buz".scan /\w+/
#=> ["foo", "bar", "buz"]
```
## License
under the MIT License:
- see LICENSE file
## Thanks
- Referred from [mruby-pure-regexp](https://github.com/WindProphet/mruby-pure-regexp) in many Ruby methods and basic test cases.