Forum: IronRuby Regular Expressions

Posted by Aaron Clauson (aaronc)
on 2008-03-26 01:56
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 by Tomas Matousek (Guest)
on 2008-03-26 03:56
(Received via mailing list)
Yes, it's still on todo list. It's right after 'eval'.

Tomas
Posted by Jimmy Schementi (Guest)
on 2008-03-26 05:37
(Received via mailing list)
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 Clauson" <lists@ruby-forum.com> 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/.
Posted by Aaron Clauson (aaronc)
on 2008-03-26 06:06
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.