Forum: IronRuby Regular Expressions

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6beced7e1914e4ed0b7232c73e6eac43?d=identicon&s=25 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
Cb51033949ffccd982ae32c9f890f25a?d=identicon&s=25 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
E1deaac6561498a0e7472e6268ea9ccc?d=identicon&s=25 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-js....

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/.
6beced7e1914e4ed0b7232c73e6eac43?d=identicon&s=25 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
This topic is locked and can not be replied to.