From: Zeno Davatz Date: 2011-02-21T04:31:33+09:00 Subject: Regular Expression help - Replacing Regexp that worked with Oniguruma in 1.8.6 Hi 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. Best Zeno -- Posted via http://www.ruby-forum.com/.