Live data from Hacker News

Rubular - a Ruby regular expression editor

rubular.com

31–40 of 41 posts

Re: Rubular - a Ruby regular expression editor

#31

And this is why hacker news is terrible.

I wish I had enough karma to downvote this useless comment. At least have the decency to tell us why you think this is so awful. I for one love seeing things like this on HN. One of my favorite things about this site is it's not just news. On any given day, I might find a new tool, language, function, or just another way of looking at things that I hadn't considered before. This is why hacker news is awesome. You're why it's terrible.

Re: Rubular - a Ruby regular expression editor

#33

And this is why hacker news is terrible.

I wish I had enough karma to downvote this useless comment. At least have the decency to tell us why you think this is so awful. I for one love seeing things like this on HN. One of my favorite things about this site is it's not just news. On any given day, I might find a new tool, language, function, or just another way of looking at things that I hadn't considered before. This is why hacker news is awesome. You're…

Some people think HN is a startup aggregator, and the actual tech and toolkit and non-startup news is unimportant.

There was a post some time ago and one comment went into some detail about HN's overall demographic and how the segments of that aren't entirely compatible (well, if you removed the personal opinion from it, anyway).

Re: Rubular - a Ruby regular expression editor

#34

i didn't realize that it was possible to name a capturing group. this is an awesome example.

ruby > 1.9

Also available in Python's re module, with a syntax that's just different enough to be irritatingly incompatible.

    >>> import re
    >>> r = re.compile(r'(?P\d{1,2})\/(?P\d{1,2})\/(?P\d{4})')
    >>> r.search("Today's date is: 10/23/2012.").groupdict()
    {'month': '10', 'day': '23', 'year': '2012'}

Re: Rubular - a Ruby regular expression editor

#35

And this is why hacker news is terrible.

I wish I had enough karma to downvote this useless comment. At least have the decency to tell us why you think this is so awful. I for one love seeing things like this on HN. One of my favorite things about this site is it's not just news. On any given day, I might find a new tool, language, function, or just another way of looking at things that I hadn't considered before. This is why hacker news is awesome. You're…

[deleted]

Re: Rubular - a Ruby regular expression editor

#36

Rubular is great. The only thing preventing it from being a 'one stop shop' for learning regular expressions is that it omits describing in the notes below some functionality (eg. the "? " shown in the example). http://rubyxp.com/ is better for these descriptions.

Thanks. If you have any other ideas for improvement let me know. I've also open sourced the project at https://github.com/oscardelben/rubyxp
Post reply on HN