From: "Zeno R.R. Davatz" Date: 2011-02-22T01:40:25+09:00 Subject: Re: Regular Expression help - Replacing Regexp that worked with Oniguruma in 1.8.6 Dear Robert On 21 Feb., 03:15, Robert Klemme wrote: > On Sun, Feb 20, 2011 at 8:31 PM, Zeno Davatz wrote: > > On our way to shifting to Ruby 1.8.7 - away from the beloved > > Oniguruma-Patch - I am tripping over our usefull regular expression used > > in Ruby 1.8.6 - so if anybody is strong in refactoring regular > > expressions, please let me know. > > > sample one: > > >http://choddb.rubyforge.org/ODDB/SwissmedicPlugin.html > > > %r{excipiens\s+(ad|pro)\s+(?((?!\bpro\b)[^.])+)}u > > > and > > > %r{pro\s+(?(?[\d.,]+)\s*(?[kcmuµn]?[glh]))}u > > > And this one on line 148 > > >http://url.ba/kxez > > > All three samples need to work in Ruby 1.8.7 and in 1.9.2. > > > They currently work perfectly fine in Ruby 1.8.6 with the beloved > > Oniguruma-Patch V2.5.9 > > > Any hints or Feedback is welcome. > > Can you give hints about what exactly you are asking?  Do you have > syntax errors, do the expressions not match?  What is the reason for > your posting? Basically our software does not start-up with Ruby 1.8.7 and with Ruby 1.9.2 as Oniguruma is missing. > Ideally you would provide sample code and text to match. Ok, I will try to produce these beyond what I already supplied above. Best Zeno