# Importing/converting regex patterns

**URL:** <https://www.ruby-forum.com/t/importing-converting-regex-patterns/164707>\
**Category:** Ruby\
**Created:** [April 4, 2009, 1:42pm UTC](https://www.ruby-forum.com/t/importing-converting-regex-patterns/164707 "2009-04-04T13:42:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshaikh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@sshaikh](https://www.ruby-forum.com/u/sshaikh)\
**Post date:** [April 4, 2009, 1:42pm UTC](https://www.ruby-forum.com/t/importing-converting-regex-patterns/164707/1 "2009-04-04T13:42:53Z")

</div>

I have a couple of regex patterns used and stored in a MySQL DB. As  
such, they follow the MySQL syntax for describing regular expressions.

If I wanted to then use these in a Ruby app, is there a straightforward  
way to convert these expressions? Possibly via another regex system?

If not, are there any conventional solutions to deal with this? At the  
moment the only real option is to request a MySQL instance to do  
validation for the Ruby app.

Thanks!

Shak
