Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Oniguruma...

Reply
Thread Tools

Oniguruma...

 
 
Hal Fulton
Guest
Posts: n/a
 
      01-06-2006
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



 
Reply With Quote
 
 
 
 
Ross Bamford
Guest
Posts: n/a
 
      01-06-2006
On Fri, 06 Jan 2006 07:10:06 -0000, Hal Fulton <>
wrote:

> 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,

--
Ross Bamford -
 
Reply With Quote
 
 
 
 
Eric Hodel
Guest
Posts: n/a
 
      01-06-2006
On Jan 5, 2006, at 11:10 PM, Hal Fulton wrote:

> 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:
>
> 2. How to build the stable snapshot with Oniguruma?


http://www.ruby-lang.org/cgi-bin/cvs.../INSTALL-RUBY?
rev=1.1.1.8;content-type=text%2Fplain

--
Eric Hodel - - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com




 
Reply With Quote
 
Eric Hodel
Guest
Posts: n/a
 
      01-06-2006
On Jan 6, 2006, at 12:19 PM, Eric Hodel wrote:

> On Jan 5, 2006, at 11:10 PM, Hal Fulton wrote:
>
>> 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:
>>
>> 2. How to build the stable snapshot with Oniguruma?

>
> http://www.ruby-lang.org/cgi-bin/cvs.../INSTALL-RUBY?
> rev=1.1.1.8;content-type=text%2Fplain


I had to apply one hunk of the patch by hand, but otherwise it was
straightforward.

--
Eric Hodel - - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com




 
Reply With Quote
 
Rich Morin
Guest
Posts: n/a
 
      01-06-2006
Googling around, the only information I found on Oniguruma
was in Japanese. Is there an overview in English?

-r
--
Technical editing and writing, programming, and web development:
http://www.cfcl.com/rdm/resume.html

Contact information: , +1 650-873-7841


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



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 46 47 48 49 50 51 52 53 54 55 56 57