https://github.com/ess/mruby-rust-poop
https://github.com/ess/mruby-rust-poop
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ess/mruby-rust-poop
- Owner: ess
- Created: 2017-05-12T22:22:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T07:26:06.000Z (about 9 years ago)
- Last Synced: 2025-02-22T21:42:10.599Z (over 1 year ago)
- Language: Ruby
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mruby-onig-regexp
[](https://travis-ci.org/mattn/mruby-onig-regexp)
## install by mrbgems
```ruby
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :github => 'mattn/mruby-onig-regexp'
end
```
## Example
```ruby
def matchstr(str)
reg = Regexp.compile("abc")
if reg =~ str then
p "match"
else
p "not match"
end
end
matchstr("abcdef") # => match
matchstr("ghijkl") # => not match
matchstr("xyzabc") # => match
```
## License
MIT
### License of Onigmo
BSD licensed.
Onigmo (Oniguruma-mod) -- (C) K.Takata
Oniguruma ---- (C) K.Kosako
## Author
Yasuhiro Matsumoto (a.k.a mattn)