Oniguruma...

H

Hal Fulton

My understanding is that Oniguruma is standard in 1.9 and
can be built into 1.8.x -- correct?

So my first two questions are:

1. How to do a simple test that confirms whether or not
Oniguruma is there?

2. How to build the stable snapshot with Oniguruma?


Thanks,
Hal
 
R

Ross Bamford

My understanding is that Oniguruma is standard in 1.9 and
can be built into 1.8.x -- correct?

So my first two questions are:

1. How to do a simple test that confirms whether or not
Oniguruma is there?

From what I can gather, the regular ('old') way doesn't support
Lookbehind, but Oniguruma does, so:

[rosco@jukebox dev]$ irb
irb(main):001:0> "ab" =~ /(?<!a)b/
SyntaxError: compile error
(irb):1: undefined (?...) sequence: /(?<!a)b/
from (irb):1
irb(main):002:0> quit

[rosco@jukebox dev]$ irb9
irb(main):001:0> "ab" =~ /(?<!a)b/
=> nil
irb(main):002:0> "db" =~ /(?<!a)b/
=> 1

would appear to do it.
2. How to build the stable snapshot with Oniguruma?

Umm, don't know.

Cheers,
 
R

Rich Morin

Googling around, the only information I found on Oniguruma
was in Japanese. Is there an overview in English?

-r
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top