On Sun, Feb 20, 2011 at 8:31 PM, Zeno Davatz <zdavatz / gmail.com> 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+(?<galform>((?!\bpro\b)[^.])+)}u
>
> and
>
> %r{pro\s+(?<scale>(?<qty>[\d.,]+)\s*(?<unit>[kcmu=B5n]?[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?

Ideally you would provide sample code and text to match.

Cheers

robert


--=20
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/