News for hackers. Stuff that matters.
Re:Debuggex: A visual regex debugger by UnoriginalGuy on Friday February 22, 2013 @02:02PM (#5265971)
This is the best RegEx web-site that I have seen. It is actually quite far ahead of everyone else.

Unfortunately if you don't "understand" RegEx it won't help much. It is more for people who already have it down.

For me I am still stuck in copy/paste land. I could never get my head around the "logic" of RegEx, it just seems completely random and arbitrary.

Plus they re-use the same characters but have multiple meanings (e.g. ^ for NOT and for START).

Re:Debuggex: A visual regex debugger by kgen on Friday February 22, 2013 @03:03PM (#5266423)
I once wrote a website (http://regexone.com) to help people learn regular expressions using practical examples -- maybe you would like to give that a try and see if it helps you in understanding the different regexes a bit more?
Re:Debuggex: A visual regex debugger by zaptheimpaler on Friday February 22, 2013 @11:05PM (#5268505)
I just went through all the examples, that was awesome! Best tutorial I've seen yet. With this and debuggex, I should be all set to parse HTML with regexes (kidding).

By the way, could someone explain this to me - do regexes match a string if a part of a string matches the regex, or if the whole string does?

For example, this regex "([+|-]* )(\d+[,|.]* )(\d+)(\.)?(e)?(\d+)" (intended to match decimal/scientific numbers - see http://regexone.com/example/0) matches "720p" on regexone, but fails to match on debuggex. So it seems like it varies depending on some configuration - is that right?

Re:Debuggex: A visual regex debugger by archangel_one on Saturday February 23, 2013 @03:56AM (#5269051)
That regex doesn't match 720p on regexone (and shouldn't - it has required spaces in it). You're getting a tick for the bottom item because it's not supposed to match that case.

As for your question, it generally depends how they're called - eg. in Python's re module, whether you call search() or match(). You can force a regex to match the entire string by adding ^ and $.

Re:Debuggex: A visual regex debugger by dancesdrunk on Friday February 22, 2013 @07:19PM (#5267845)
Used your site a few months ago and have been recommending it to everyone since! Can I make a request for "best Solutions" & possibly more exercises? Its been the best resource I've found for getting the basics down, thanks!
Re:Debuggex: A visual regex debugger by UnoriginalGuy on Friday February 22, 2013 @05:34PM (#5267341)
Holy shit, that is amazing. I'm currently working my way through it. I feel more confident already.

Seriously thank you.

Re:Debuggex: A visual regex debugger by heywire on Friday February 22, 2013 @03:24PM (#5266542)
Thanks for the link, this looks very helpful!
Re:Debuggex: A visual regex debugger by sdepablos on Saturday February 23, 2013 @05:28PM (#5271762)
Just two comments: * when having cases that should match and other that not, It would be ok to differentiate them * in some lessons it would be ok to force the full string to be matched. If not it's too easy to write i.e. file in http://regexone.com/lesson/8? and pass to the next one.
Re:Debuggex: A visual regex debugger by sdepablos on Saturday February 23, 2013 @05:23PM (#5271747)
I was just taking a look to it as I'd like some of my non-technical staff to understand how regex works - they need it for Google Analytics filters - and it looks wonderful.
Re:Debuggex: A visual regex debugger by Jam0864 on Friday February 22, 2013 @11:03PM (#5268497)
This is an amazing website, cheers!
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @02:05PM (#5265991)
Yes, the intention was to help solve those cases where you are staring at your screen because you don't know where the match went wrong.

I'm thinking of doing some tutorials geared towards teaching students in grade school how to use them. I think a visual representation would help significantly.

Re:Debuggex: A visual regex debugger by anigbrowl on Friday February 22, 2013 @05:12PM (#5267222)
Seconded - it's superb. Having the example button for new users of regexes or people who haven't used one in a while is an excellent addition, as are the diagrams.

I find it sort of sad that several people have responded by linking to their preferred (but clearly inferior) Regex pages, which detracts from the accomplishment of this one.

Re:Debuggex: A visual regex debugger by gizmo686 on Saturday February 23, 2013 @07:39PM (#5272135)
I understand RegEx, but am (almost) completely unable to read it. For me, this site it perfect.

The way I learned RegEx was simply spending 2 work days writing a parser with it. I think the problem is that there is a moment when RegEx suddenly makes sense, and you cannot understand how anyone can be confused by it (even when you yourself were confused just 5 minutes ago).

Re:Debuggex: A visual regex debugger by jacobparker on Friday February 22, 2013 @02:51PM (#5266330)
Regular expression: ( a * )*

String: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab

This kills the browser.

ADDENDUM:

A good read on executing regular expressions in linear (and thus predictable) time is http://swtch.com/~rsc/regexp/regexp1.html

Many other algorithms have exponential edge cases. This can open yourself to DoS'ing if you accept regular expressions from the user (e.g. a search feature.)

Re:Debuggex: A visual regex debugger by thomasahle on Saturday February 23, 2013 @07:17AM (#5269457)
No. While you are correct a DFA is far superior for parsing this specific subset of javascript regex, it does in no way make it ideal for debugging purposes.

1) In the user's program the regex is not going to be run on a dfa (since we are talking about the javascript variation which has back references). It makes more sense to warn the user about bad performance, than making them believe they are safe.

2) A debugger has to be true to the input. If the user wants to debug (a) it doesn't help that the debugger just casually transforms it into a*. That wouldn't make the diagrams fun at all.

3) It is entirely possible that in the future, the author wants to expand the awesome tool to a larger subset of javascript regex. This would probably make it break out of the finite automa space.

I do however agree that it's a pitty how many good regular expressions are run on stupid backtracking systems out there.

Re:Debuggex: A visual regex debugger by jacobparker on Saturday February 23, 2013 @10:02AM (#5269785)
That's silly.

Javascript doesn't mandate that this regular expression be slow. In fact, in Safari and Firefox on OSX this regular expression runs fine. Chrome OSX fails but I remember it running fine in Linux yesterday (but I might be wrong.)

1) Back references do not mean you need to have exponential edge cases for vanilla REs

2) There is no one true way to execute an RE. There are good ways and bad ways, though.

3) The Thompson algorithm does not preclude non-regular extensions.

Anyway, just wanted to add the rsc link to the discussion :)

Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @03:45PM (#5271413)
Sorry for the delayed response. Spent all day yesterday responding to feedback. The reason this crashes is due to the internal javascript engine.

In order to ensure that my engine (I simulate a kind of NFA) matches what javascript's engine matches, every time I match on my engine, I also try to exact match using javascript's engine. Unfortunately, javascript's engine always uses backtracking, even when it doesn't need to. Obviously this code should have been turned off for production, and I'll fix it on the next push.

To replicate the crash on your own, try typing: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab'.match(/^(a)$/) in your console.

Re:Debuggex: A visual regex debugger by jacobparker on Saturday February 23, 2013 @11:39PM (#5272864)
Interesting - it seems some browsers dont have this as an exponential edge case and indeed in those yours doesn't execute exponentially (I guess I got mixed up when testing.)

Anyway I dont consider it a "bug" or anything, just wanted to bring up the rsc paper for discussion :) Keep up the good work!

Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @03:47PM (#5271429)
Not sure what kind of formatting hn does, but that should be / ^ ( a * ) * $ / inside the match (remove spaces).
Re:Debuggex: A visual regex debugger by abecedarius on Friday February 22, 2013 @08:54PM (#5268165)
Worth mentioning that the Thompson algorithm can be coded more concisely: https://github.com/darius/sketchbook/blob/master/regex/nfa_s...
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @03:01PM (#5266401)
Looking into it.
Re:Debuggex: A visual regex debugger by albemuth on Friday February 22, 2013 @03:31PM (#5266582)
My personal favourite: http://rubular.com/

Surprised no one brought it up

Re:Debuggex: A visual regex debugger by andrewguenther on Friday February 22, 2013 @05:16PM (#5267260)
As a long time Rubular user, I will be switching to Debuggex.

It just feels right to me. It explains your regex to you, which, in my mind, is a much better way to debug a regex than to supply a large set of test strings.

Re:Debuggex: A visual regex debugger by ulrikrasmussen on Saturday February 23, 2013 @04:47AM (#5269153)
Re:Debuggex: A visual regex debugger by therec on Saturday February 23, 2013 @11:48AM (#5270268)
Well, you didn't use the same regular expression. If you use the same one the matching is the same. Here is the link of tubular with the same expression than debuggex: http://rubular.com/r/rMu0nAnJai
Re:Debuggex: A visual regex debugger by gojomo on Friday February 22, 2013 @02:11PM (#5266045)
(Obligatory relevant repost:)

My entry into this category:

http://regex.powertoy.org/

Important caveat: it makes use of a hidden Java applet -- so that it can supports the somewhat larger Java regex syntax, doesn't send your data anywhere else for matching, and can hook into the string-probing to animate the process. So dig out whatever browser you use for Java applets (if you still have one) to test.

Regarding the animation, click the 'animate?' link to show the animation step/speed controls. For example, you can watch the regex that tests whether a number is prime (by failing) or composite (by succeeding) via these two animations:

49: http://regex.powertoy.org/?pat=/^1%3F%24|^%2811+%3F%29\1+%24....

47: http://regex.powertoy.org/?pat=/^1%3F%24|^%2811+%3F%29\1+%24....

I really want to get rid of the applet requirement; I might someday cross-compile the JDK7 regex support to JS so that the full syntax and animation can still be supported, without an applet.

Re:Debuggex: A visual regex debugger by japaget on Friday February 22, 2013 @02:55PM (#5266356)
Generally I try these sorts of things out on a small but non-trivial example. Unfortunately it failed, so while this regex debugger shows a great deal of potential, there is still a bit more work to be done. My inputs:

    Regex: TVo[12].\d.* [Aa] ..[^k]
    Test string: TVo1-0:01.0-1:01.0 A Nashville
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @03:02PM (#5266416)
The current release only supports exact matches. Multiple matches are planned for a future release.

However, if you use the slider to slide to just past the "s" in Nashville, you can see that the end state does indeed light up.

Re:Debuggex: A visual regex debugger by Guillaume86 on Friday February 22, 2013 @03:03PM (#5266419)
Looks like it's looking for full match (^regex$),

Just use: TVo[12].\d.* [Aa] ..[^k].* and it works

Re:Debuggex: A visual regex debugger by DEinspanjer on Friday February 22, 2013 @02:17PM (#5266103)
Very nice. I'd recommend making the text to match field a text area and doing line based matches.

When I need to haul out the big guns, I load up RegexBuddy in a Wine bottle and dump a screenfull of text into it along with the regex to figure out where I went wrong.

They have a very different way of visualizing the step by step, but both are great tools.

Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @02:19PM (#5266119)
The text to match field is a text area; it will auto-expand as you type into it.

However, only exact matches are supported for the first release. I wanted to get user feedback before I built any more features. I think I have an intuitive way to visualize findAll() type matches.

Re:Debuggex: A visual regex debugger by eridius on Friday February 22, 2013 @07:02PM (#5267783)
Neat. Here's the Daring Fireball email regex: http://www.debuggex.com/?re=%5Cb%28%28%3F%3A%5Ba-z%5D%5B%5Cw...

Sadly it doesn't seem to understand (?i).

Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @08:11PM (#5268021)
Sorry about the lacking support. The goal for the next release is to have full support for Javascript flavor regexes.
Re:Debuggex: A visual regex debugger by ajacksified on Friday February 22, 2013 @01:48PM (#5265855)
This is awesome! The "random examples" is a nice touch. The visualization is great.
Re:Debuggex: A visual regex debugger by ulrikrasmussen on Saturday February 23, 2013 @04:19AM (#5269095)
This is really cool! One thing that would be really awesome would be if you added a way to switch between disambiguation strategies. At the moment, it seems like the default strategy is greedy parsing (i.e. the "Perl way"). For instance, when matching the string "ab" against (ab)(b?) the first group matches "a" while the second matches "b". With the POSIX strategy, the first group will match "ab" and the second will match the empty string.

I think these subtle differences leads to a lot of confusion when users are not aware that the underlying implementation is different from what they are used to.

Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @04:03PM (#5271493)
There will be support for different flavors of regexes in an upcoming release.
Re:Debuggex: A visual regex debugger by arrakeen on Friday February 22, 2013 @01:57PM (#5265930)
very nice visualization. for a similar interactive regexp debugger in perl, see Regexp::Debugger: https://metacpan.org/module/Regexp::Debugger
Re:Debuggex: A visual regex debugger by martin_ on Friday February 22, 2013 @01:50PM (#5265881)
This is incredible - good job. What flavors of regex do you plan to support
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @01:58PM (#5265936)
Full support for Javascript will be built out first. After that, Python and PCRE. In the longer term, I plan to support .NET, Java, Ruby, and POSIX.
Re:Debuggex: A visual regex debugger by northisup on Friday February 22, 2013 @04:29PM (#5266971)
Very cool visualization. Trying to match an e-mail with this (from django.core.validators) but it isn't working: http://www.debuggex.com/?re=%28%5E%5B-%21%23%24%25%26%27%2A%...
Re:Debuggex: A visual regex debugger by northisup on Friday February 22, 2013 @04:32PM (#5266988)
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @04:33PM (#5267002)
I think you are missing lower case letters in your character sets.

Besides that, apologies for it stretching sideways and making you scroll. Will be fixed in a future release!

Re:Debuggex: A visual regex debugger by northisup on Friday February 22, 2013 @06:39PM (#5267668)
In python you can add flags like 'case insensitive' when you compile the regex.
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @04:34PM (#5267008)
Keep in mind that it doesn't support flags yet, which is why it wouldn't work out-of-the-box.
Re:Debuggex: A visual regex debugger by cromwellian on Friday February 22, 2013 @08:47PM (#5268139)
Pretty cool, I like the automata diagram of the expression.

Here's another one http://ocpsoft.org/tutorials/regular-expressions/java-visual...

Done with GWT and Errai, source here: https://github.com/ocpsoft/regex-tester/tree/master/src/main...

Re:Debuggex: A visual regex debugger by greggman on Friday February 22, 2013 @11:38PM (#5268589)
Not bad. Have you thought about supporting a much larger string area? The re editor in Slickedit lets me paste multiple lines of text and see what parts get matched by the regex which is super useful for searching and replacing code and also very useful for multi-line matches.

http://www.slickedit.com/demo/high/RegexEvaluator/RegexEvalu...

Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @11:49PM (#5268611)
Yup, it just didn't make it into the first release. Will definitely be in a future release.
Re:Debuggex: A visual regex debugger by NuZZ on Saturday February 23, 2013 @01:39AM (#5268796)
First off, nice work, this is legit useful stuff.

Suggestions; the regex reference could use a distinguishing feature such as a subtle light grey background and/or a line seperating it along with more whitespace.

Also, the boxes seem arbitrarily placed. I realize one is centered, and the others take up the remaining space on the next "line", but perhaps you could create better visual boundaries or something.

Lastly, apologies, but maybe the font Lato looks nice on your setup, but its rather jaggedy/unappealing on windows.

Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @04:00PM (#5271478)
Thank you for the feedback.

The regex reference is only temporarily there. It'll eventually be replaced by a much better feature which is in the pipeline. I'll play around with the css to make it better.

I've played around with the positioning a bit, and it definitely needs iteration. However, an upcoming ui change will drastically change the demands on the ui, so it doesn't make sense to optimize that yet.

I'll replace the Lato font. I agree it looks terrible on windows.

Thanks for all the feedback!

Re:Debuggex: A visual regex debugger by ericcholis on Friday February 22, 2013 @01:55PM (#5265918)
Regex is one of my weak points that I've always wanted to fix. I think this just might be the tool that accomplishes that.
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @02:08PM (#5266012)
Great to hear that :) Let me know if there's any features I can add that would make them less confusing for you.
Re:Debuggex: A visual regex debugger by benth on Friday February 22, 2013 @02:29PM (#5266187)
Nice. It looks like beginning and end of string anchors are included by default. Is there any way to turn that off?
Re:Debuggex: A visual regex debugger by michaelt on Friday February 22, 2013 @08:10PM (#5268017)
Why not just put a .* at the start and end of your regexp?

Unless you want to do that match-across-newlines witchcraft.

Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @05:18PM (#5267271)
Not in this release. It's exact matches only for now.
Re:Debuggex: A visual regex debugger by spankalee on Saturday February 23, 2013 @02:29PM (#5271094)
This is really awesome, and it's immediately going into my batbelt bookmark folder.

One quick UI note: The reference table is much easier to read if the lines are left-aligned. With centering and two columns, it's hard to tell at first which descriptions the escape sequences belong to.

Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @03:39PM (#5271384)
Thanks for the feedback. Will fix it immediately.
Re:Debuggex: A visual regex debugger by fernly on Saturday February 23, 2013 @02:12AM (#5268862)
When a kleene star follows a quantifier, the "n times" legend under the quantified diagram element gets cropped, e.g http://www.debuggex.com/?re=a%7B2%7Db%2A&str=

Chrome, mac os.

Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @04:09PM (#5271537)
Thanks for the feedback. I'll fix this as soon as I can.
Re:Debuggex: A visual regex debugger by jebblue on Saturday February 23, 2013 @12:48AM (#5268710)
This makes regex fun, I could actually see myself relying on it more. Not sure if I'm not writing them every day if I'll remember a year from now what \dd does but now I have a good site to go to to remember again. Nice site.
Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @04:09PM (#5271530)
Thank you. Let me know what I could do to make it even more fun :)
Re:Debuggex: A visual regex debugger by jes on Friday February 22, 2013 @03:37PM (#5266615)
Great, now I have two problems.
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @05:19PM (#5267273)
But at least you can fix them quickly ;)
Re:Debuggex: A visual regex debugger by speeder on Friday February 22, 2013 @01:50PM (#5265876)
This is really, really, really awesome.

I think I will add this to the URLs that I know on my head.

Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @04:08PM (#5271527)
Thank you. Share generously :)
Re:Debuggex: A visual regex debugger by radicalbyte on Friday February 22, 2013 @04:12PM (#5266852)
Showing the state machine is cool, but I'd recommend adding more room for test cases, ala regexpal.com.

A set of fail strings would be useful, it's something no-one else does but it vital for a good user experience.

Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @04:20PM (#5266915)
Multiple matches is planned for a future release.

How would you recommend generating fail string? The space of failing strings is really large. From my discussions with users, they usually have a specific failed string and they want to see why it doesn't work.

Re:Debuggex: A visual regex debugger by scriptproof on Saturday February 23, 2013 @09:02AM (#5269650)
Reminds me http://www.xul.fr/javascript/regular-expression-tester.php (2008) That is more extended.
Re:Debuggex: A visual regex debugger by mhartl on Friday February 22, 2013 @03:19PM (#5266515)
My favorite tool in this vein—and one of my favorite examples of an essentially perfect one-page web app—is Rubular (http://rubular.com/).
Re:Debuggex: A visual regex debugger by mukundmr on Friday February 22, 2013 @10:35PM (#5268433)
I prefer http://gskinner.com/RegExr/. The UI is way more polished and helpful. It is quite accurate as well.
Re:Debuggex: A visual regex debugger by amenghra on Friday February 22, 2013 @01:50PM (#5265880)
Very similar. Provides some "linting": http://regexp.quaxio.com/
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @02:21PM (#5266134)
That is a good visualization. However, it doesn't let you debug if there is a problem with matching a string. That was the explicit goal in building Debuggex.

Linting is a planned feature for a future release.

Re:Debuggex: A visual regex debugger by kahoon on Friday February 22, 2013 @01:53PM (#5265903)
I immediately thought about this one: http://www.regexper.com/
Re:Debuggex: A visual regex debugger by VaucGiaps on Friday February 22, 2013 @02:04PM (#5265989)
I really like this one. Too bad it's Flash...
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @02:09PM (#5266018)
It's done with SVG. Everyting will work on your smartphone. (Try it!)
Re:Debuggex: A visual regex debugger by kahoon on Friday February 22, 2013 @02:06PM (#5266001)
Flash? I think it's done with SVG.
Re:Debuggex: A visual regex debugger by malkia on Saturday February 23, 2013 @12:54AM (#5268723)
for a desktop regex "debugger" app, I've been using Edi Weitz's wonderful Regex Coach - http://www.weitz.de/regex-coach/ (Windows only version, written in LispWorks)
Re:Debuggex: A visual regex debugger by harpreets on Saturday February 23, 2013 @01:15PM (#5270738)
From hieroglyphics to the actual power on hands. Wow! Just wow.
Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @04:07PM (#5271522)
Thanks. Your support means a lot :)
Re:Debuggex: A visual regex debugger by JulianMorrison on Saturday February 23, 2013 @07:10AM (#5269443)
Thank you. It actually caught a mistake I made playing with it!
Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @04:07PM (#5271525)
Thanks for the support. May you catch many more!
Re:Debuggex: A visual regex debugger by jpettersson on Saturday February 23, 2013 @01:03PM (#5270678)
This is amazing. Thank you very much!
Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @04:08PM (#5271529)
Thanks for the support!
Re:Debuggex: A visual regex debugger by GaryGapinski on Saturday February 23, 2013 @07:12AM (#5269446)
Very nice. I'll be recommending this.
Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @04:12PM (#5271550)
Thank you for the support :)
Re:Debuggex: A visual regex debugger by fyolnish on Friday February 22, 2013 @11:22PM (#5268550)
according to this, foo(bar|baz)? does not match foobar
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @11:29PM (#5268568)
Not sure what you mean. It's working for me. Can you describe what happens in more detail please.
Re:Debuggex: A visual regex debugger by martinced on Friday February 22, 2013 @09:37PM (#5268291)
It is way better than the other ones for a variety of reasons. A big one for me being the ability to directly share the URL of an example.

I'm sure they can do better: next please provide us the ability to use a tiny URL directly from within the domain (i.e. do not force me to lamely go to bit.ly or other non-sense).

Re:Debuggex: A visual regex debugger by tsergiu on Saturday February 23, 2013 @04:06PM (#5271515)
Thanks for the feedback. I'll keep that in mind for upcoming releases.
Re:Debuggex: A visual regex debugger by hacker789 on Friday February 22, 2013 @02:11PM (#5266046)
This is fantastic. How on Earth are the random matching strings calculated?
Re:Debuggex: A visual regex debugger by tsergiu on Friday February 22, 2013 @02:17PM (#5266104)
Imagine walking from the start to the end along the railroad diagram. Every time you come to a split in the road, you choose a random one. Every time you come to a character set, you choose something random inside there. That's all there is to it.
Re:Debuggex: A visual regex debugger by hacker789 on Friday February 22, 2013 @02:25PM (#5266158)
It takes a great teacher to make something sound so simple. Thanks for making this tool!