And this is why hacker news is terrible.
Rubular - a Ruby regular expression editor
31–40 of 41 posts
Re: Rubular - a Ruby regular expression editor
#32I've been using Rubular for years and it's really a great tool for trying to quickly figure out where you went wrong in a complicated regex.
Re: Rubular - a Ruby regular expression editor
#33And 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…
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
#34i didn't realize that it was possible to name a capturing group. this is an awesome example.
ruby > 1.9
>>> 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
#35And 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…
Re: Rubular - a Ruby regular expression editor
#36Rubular 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.
Re: Rubular - a Ruby regular expression editor
#37Re: Rubular - a Ruby regular expression editor
#38That's very nice. For Python users, there is: http://www.regexplanet.com/advanced/python/index.html Example: http://fiddle.re/22e5
Re: Rubular - a Ruby regular expression editor
#39Rubular is one of my favorite examples of a perfectly designed site. It has everything you need and nothing you don't.