File: README.md

package info (click to toggle)
h2o 2.2.5%2Bdfsg2-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 56,568 kB
  • sloc: ansic: 130,776; cpp: 35,914; ruby: 19,541; sh: 11,844; javascript: 6,720; yacc: 5,964; perl: 3,732; python: 2,658; asm: 2,259; makefile: 525; objc: 385; pascal: 382; php: 13
file content (45 lines) | stat: -rw-r--r-- 750 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# mruby-onig-regexp

[![Build Status](https://travis-ci.org/mattn/mruby-onig-regexp.svg)](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 <kentkt AT csc DOT jp>
    Oniguruma  ----   (C) K.Kosako <sndgk393 AT ybb DOT ne DOT jp>

## Author

Yasuhiro Matsumoto (a.k.a mattn)