News for hackers. Stuff that matters.
Re:Rubular - a Ruby regular expression editor by Falling3 on Tuesday October 23, 2012 @01:17PM (#4689083)
I'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 by ghayes on Tuesday October 23, 2012 @07:06PM (#4690816)
+1, it's really been a godsend for me
Re:Rubular - a Ruby regular expression editor by mhartl on Tuesday October 23, 2012 @02:05PM (#4689310)
Rubular is one of my favorite examples of a perfectly designed site. It has everything you need and nothing you don't.
Re:Rubular - a Ruby regular expression editor by smackjer on Wednesday October 24, 2012 @07:46AM (#4692486)
Totally agree. It inspired me to build http://strfti.me, and eventually the stamp gem.
Re:Rubular - a Ruby regular expression editor by twelvechairs on Tuesday October 23, 2012 @04:22PM (#4690161)
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.
Re:Rubular - a Ruby regular expression editor by oscardelben on Wednesday October 24, 2012 @12:29AM (#4691645)
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
Re:Rubular - a Ruby regular expression editor by danso on Tuesday October 23, 2012 @04:15PM (#4690137)
I also like using http://www.gskinner.com/RegExr/

Which I think is Flash/Flash Air...

Being able to permalink (which Rubular also does) to examples is a killer feature..I keep trying to convince non-programmers who work with data that they should at least learn regexes to make their life easier

Re:Rubular - a Ruby regular expression editor by blaines on Tuesday October 23, 2012 @04:28PM (#4690191)
Flash uses Perl Compatible Regular Expression Engine (PCRE) http://www.pcre.org/

Ruby uses Oniguruma http://www.geocities.jp/kosako3/oniguruma/

While the average regex will probably work on both, you should know there isn't a 1:1 correlation between the two.

Re:Rubular - a Ruby regular expression editor by brettbender on Tuesday October 23, 2012 @01:58PM (#4689279)
Love rubular, use it every single time I write or edit a regex, just to test some weird cases while I think through the syntax.
Re:Rubular - a Ruby regular expression editor by skram on Tuesday October 23, 2012 @12:44PM (#4688877)
+1 - I love Rubular and use it whenever I have to write regular expressions for fun or profit.
Re:Rubular - a Ruby regular expression editor by mrchess on Tuesday October 23, 2012 @01:13PM (#4689057)
How does one write regular expressions for profit? Do you mean using regex's to filter datasets or do you actually sell regex's?
Re:Rubular - a Ruby regular expression editor by Falling3 on Tuesday October 23, 2012 @01:16PM (#4689077)
He/she is probably referring to paid work that involves regular expressions.
Re:Rubular - a Ruby regular expression editor by skram on Tuesday October 23, 2012 @01:36PM (#4689173)
Bingo
Re:Rubular - a Ruby regular expression editor by blaines on Tuesday October 23, 2012 @02:00PM (#4689295)
I love rubular too. Question though... Why isn't it open source?
Re:Rubular - a Ruby regular expression editor by mhartl on Tuesday October 23, 2012 @02:06PM (#4689316)
What would be gained if it were? I suppose you could run it locally. Come to think of it, that would be nice.
Re:Rubular - a Ruby regular expression editor by blaines on Tuesday October 23, 2012 @04:24PM (#4690172)
- Yes, run it locally. (Sometimes I want to test against sensitive information)

- Learn how a regex editor is built.

- Use a different regex engine (is that possible to swap)? [1]

I'm sure there are more reasons.

1 http://en.wikipedia.org/wiki/Comparison_of_regular_expressio...

Re:Rubular - a Ruby regular expression editor by riffraff on Tuesday October 23, 2012 @05:12PM (#4690366)
as for [1] yes, you're just unable to use ruby's syntax.

Oniguruma (regex engine in ruby1.9) existed as an external library in the past (1.8) and you can get stuff like re2 for ruby this days[1]

[1] https://github.com/mudge/re2

Re:Rubular - a Ruby regular expression editor by logn on Tuesday October 23, 2012 @05:03PM (#4690330)
It's not much more than a webapp wrapper around Ruby's built-in regex functionality.
Re:Rubular - a Ruby regular expression editor by dopamean on Wednesday October 24, 2012 @02:13PM (#4694221)
I am new to programming and chose Ruby. I have found Rubular to be a fantastic way to learn about regular expressions through trial and error. This site has really helped me understand regex's. I was having a little trouble fully grasping the concept from simply reading books.
Re:Rubular - a Ruby regular expression editor by walle_ on Wednesday October 24, 2012 @05:03AM (#4692202)
I made a clone of rubular a while back for testing javascript regexes. It's up on http://jsular.com/ Code available at https://github.com/walle/jsular
Re:Rubular - a Ruby regular expression editor by cynwoody on Tuesday October 23, 2012 @03:11PM (#4689817)
That'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 by TheSmoke on Wednesday October 24, 2012 @05:20AM (#4692236)
for python i use http://re-try.appspot.com
Re:Rubular - a Ruby regular expression editor by liangzan on Wednesday October 24, 2012 @09:12AM (#4692754)
here's another regular expression editor. but for javascript http://scriptular.com/
Re:Rubular - a Ruby regular expression editor by adovenmuehle on Tuesday October 23, 2012 @02:31PM (#4689523)
I use this quite a bit. Also displays named captures with values which is nice.
Re:Rubular - a Ruby regular expression editor by dasil003 on Tuesday October 23, 2012 @04:50PM (#4690281)
I want this for sed / grep with optional shell interpolation
Re:Rubular - a Ruby regular expression editor by boneheadmed on Tuesday October 23, 2012 @03:20PM (#4689873)
Didn't know about this. Love it! Thanks for sharing.
Re:Rubular - a Ruby regular expression editor by amorphid on Tuesday October 23, 2012 @02:23PM (#4689439)
I've been using this since '09. I love it!
Re:Rubular - a Ruby regular expression editor by logical42 on Tuesday October 23, 2012 @03:12PM (#4689826)
i didn't realize that it was possible to name a capturing group. this is an awesome example.
Re:Rubular - a Ruby regular expression editor by aaronblohowiak on Tuesday October 23, 2012 @03:21PM (#4689885)
ruby > 1.9
Re:Rubular - a Ruby regular expression editor by pjscott on Tuesday October 23, 2012 @09:12PM (#4691181)
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<month>\d{1,2})\/(?P<day>\d{1,2})\/(?P<year>\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 by lolwutreddit on Tuesday October 23, 2012 @02:11PM (#4689351)
I can thank Michael Hartl for showing me this gem in the Rails tutorial.
Re:Rubular - a Ruby regular expression editor by rross0227 on Tuesday October 23, 2012 @03:39PM (#4689989)
And this is why hacker news is terrible.
Re:Rubular - a Ruby regular expression editor by Falling3 on Tuesday October 23, 2012 @06:22PM (#4690659)
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 by FuzzyDunlop on Tuesday October 23, 2012 @08:54PM (#4691132)
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 by blaines on Tuesday October 23, 2012 @04:33PM (#4690218)
You aren't making it better.

Karma: 11 / 663 days old

http://news.ycombinator.com/user?id=rross0227

Re:Rubular - a Ruby regular expression editor by xyzzyb on Tuesday October 23, 2012 @04:51PM (#4690283)
What does that have to do with it?

Adding more quality submissions or comments wouldn't have prevented this submission from being upvoted.