# Regular Expressions

**URL:** <https://www.ruby-forum.com/t/regular-expressions/132948>\
**Category:** IronRuby\
**Created:** [March 26, 2008, 1:56am UTC](https://www.ruby-forum.com/t/regular-expressions/132948 "2008-03-26T01:56:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![acampos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@acampos](https://www.ruby-forum.com/u/acampos)\
**Post date:** [March 26, 2008, 1:56am UTC](https://www.ruby-forum.com/t/regular-expressions/132948/1 "2008-03-26T01:56:02Z")

</div>

Hi,

Sorry if this is already discussed somewhere but after a trawl through  
this forum I couldn’t find what the state of play is with regular  
expression support in IronRuby.

I took a look at the IronRuby.Libraries assembly and saw the comment  
below so I’ve hazarded a guess the guts of regular expression support  
for IronRuby is still on the ToDo list? In which case it will be a while  
before the /^.+/ constructs can be used?

“// TODO: this implementation is totally wrong, but this is a  
placeholder for a couple of weeks until  
// jomes gets a real implementation of regex. This is only here to  
enable the spec running harness.”

Regards,

Aaron

---

<div class="post-metadata">

**Author:** ![acampos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@acampos](https://www.ruby-forum.com/u/acampos)\
**Post date:** [March 26, 2008, 3:56am UTC](https://www.ruby-forum.com/t/regular-expressions/132948/2 "2008-03-26T03:56:05Z")

</div>

Yes, it’s still on todo list. It’s right after ‘eval’.

Tomas

---

<div class="post-metadata">

**Author:** ![acampos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@acampos](https://www.ruby-forum.com/u/acampos)\
**Post date:** [March 26, 2008, 5:37am UTC](https://www.ruby-forum.com/t/regular-expressions/132948/3 "2008-03-26T05:37:03Z")

</div>

I was able to get a JSON parser working in IronRuby, and that heavily  
relies on Regex support.  
[http://jimmy.schementi.com/blog/2008/03/parsing-json-in-ironruby.html](http://jimmy.schementi.com/blog/2008/03/parsing-json-in-ironruby.html).

On 3/25/08 5:56 PM, “Aaron C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

Hi,

Sorry if this is already discussed somewhere but after a trawl through  
this forum I couldn’t find what the state of play is with regular  
expression support in IronRuby.

I took a look at the IronRuby.Libraries assembly and saw the comment  
below so I’ve hazarded a guess the guts of regular expression support  
for IronRuby is still on the ToDo list? In which case it will be a while  
before the /^.+/ constructs can be used?

“// TODO: this implementation is totally wrong, but this is a  
placeholder for a couple of weeks until  
// jomes gets a real implementation of regex. This is only here to  
enable the spec running harness.”

Regards,

## Aaron

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

---

<div class="post-metadata">

**Author:** ![acampos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@acampos](https://www.ruby-forum.com/u/acampos)\
**Post date:** [March 26, 2008, 6:06am UTC](https://www.ruby-forum.com/t/regular-expressions/132948/4 "2008-03-26T06:06:42Z")

</div>

Thanks for the replies!

I have wrapped up the .Net Regex.Match method as an interim measure but  
look forward to the much cleaner Ruby =~ and /…/ approach.

Regards,

Aaron
