Regular Expressions

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

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

Tomas

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.

On 3/25/08 5:56 PM, “Aaron C.” [email protected] 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/.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs