# Swapping regex libraries

**URL:** <https://www.ruby-forum.com/t/swapping-regex-libraries/191332>\
**Category:** Ruby\
**Created:** [July 9, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/swapping-regex-libraries/191332 "2010-07-09T18:58:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tensaiji](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/6de8d8/32.png) [@tensaiji](https://www.ruby-forum.com/u/tensaiji)\
**Post date:** [July 9, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/swapping-regex-libraries/191332/1 "2010-07-09T18:58:32Z")

</div>

I see there is a way in Ruby 1.9.1 to switch to the old regex library  
from the current Oniguruma library. Is it possible to switch to any  
others, such as PCRE?

Iain

---

<div class="post-metadata">

**Author:** ![tensaiji](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/6de8d8/32.png) [@tensaiji](https://www.ruby-forum.com/u/tensaiji)\
**Post date:** [July 9, 2010, 7:58pm UTC](https://www.ruby-forum.com/t/swapping-regex-libraries/191332/2 "2010-07-09T19:58:18Z")

</div>

Iain B. wrote:

> I see there is a way in Ruby 1.9.1 to switch to the old regex library  
> from the current Oniguruma library. Is it possible to switch to any  
> others, such as PCRE?

[http://en.wikibooks.org/wiki/Ruby\_Programming/Reference/Objects/Regexp#Alternative\_Regular\_Expression\_Libraries](http://en.wikibooks.org/wiki/Ruby_Programming/Reference/Objects/Regexp#Alternative_Regular_Expression_Libraries)

might help.  
-r

---

<div class="post-metadata">

**Author:** ![tensaiji](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/6de8d8/32.png) [@tensaiji](https://www.ruby-forum.com/u/tensaiji)\
**Post date:** [July 11, 2010, 4:50pm UTC](https://www.ruby-forum.com/t/swapping-regex-libraries/191332/3 "2010-07-11T16:50:36Z")

</div>

On 9 Jul 2010, at 18:58, Roger P. wrote:

> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Thanks, I’ll give that a look.

Iain
