Z
Zeno Davatz
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+(?<galform>((?!\bpro\b)[^.])+)}u
and
%r{pro\s+(?<scale>(?<qty>[\d.,]+)\s*(?<unit>[kcmu=C2=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.
Best
Zeno
-- =
Posted via http://www.ruby-forum.com/.=
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=C2=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.
Best
Zeno
-- =
Posted via http://www.ruby-forum.com/.=