Skip to content

suetanvil-misc/mruby-onig-regexp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mruby-onig-regexp

Build Status

install by mrbgems

MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :github => 'mattn/mruby-onig-regexp'
end

Example

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 <kentkt AT csc DOT jp>
Oniguruma  ----   (C) K.Kosako <sndgk393 AT ybb DOT ne DOT jp>

Author

Yasuhiro Matsumoto (a.k.a mattn)

About

mrbgem of 鬼雲's Regular Expression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 60.2%
  • Ruby 39.8%