I have recently released a new update for regex101 where I pretty much recoded everything; the entire explaination and colorizer engine. They are still not perfect, and I'm not fully satisfied with the code, but its way way better than it was before. I will probably remake it when I get more time on my hands.
A list of all that has been fixed would take too long to write up, but I have added some of the things I have most commonly been asked:
- Changeable delimiters
- Alternating color matches
- Bigger editor
- Wider and more accurate explanations
- Samples on how to use regex (automatically generated)
Until then I ask you guys to please tell me what you think of the current features, suggest new ones and please report any bugs you might encounter :).
If you want to help me out with the website, send me a message!
Thanks in advance!
I would also like to thank the creator of rubular for inspiring me to create my own service with extended features. I have from rubular recreated the regex quick-reference table (with some slight modification). The same goes for the welcome popup used on the index page. If there is any concern, feel free to send me an email and I will address the issue immediately.
border: 10px solid #779A73;
How do you enter a tab character in the test string without losing focus of the text field?
When I start typing the regex, the cheatsheet gets pushed below the visible part of the page as the "explanation" section expands itself. It would be nice if the cheat sheet remained next to the regex field as I typed in the regex.
Hmm, you could perhaps minimize the fields you dont need while writing it? Use the [-] buttons
1. Enter the test string.
2. Look at the cheat sheet and type into the regex field.
3. Look at the matches and test field to see if it was correct.
4. If incorrect, look at the explanation.
5. Go back to (2)
So for me, the default layout didn't handle my step (2) very well. I'm not saying that's the workflow you should optimize the UX for, but it's what mine was.
Which leads me to the problem I had with the site.
I was hoping for a way to easily (one click) get to the documentation for each of these. It seemed strange that a given name pattern could work for any human language, so I was trying to work out how this would be done. Eventually I found the tables at the bottom (with Advanced and Tricks tabs) but clicking on the links in there just adds the items to my current expression.. what I was hoping for was a direct link to some docs for the specific item (not a general link to the top level of some huge document).
Thanks for making it!
Edit: I did bookmark it, it was just so long ago that it ended up being overshadowed.
I realize that they are just little sub-dialects that I need to learn the rules of but I've never had a project which required me to take the time to write extensive regular expressions.
On the rare occasion that I do need to use a regular expression I find tools like this to be invaluable.
This tool looks particularly nice.
Community Forum section, online quiz, even IRC placed right within the page!
My favorite feature is definitely the ability to share a regular expression you've created via a link.
Nice work! (also I just followed https://twitter.com/regex101)
Simple regexes on the other hand, I use all the time.
Thanks for the kind words!
I also really like the community submitted regexes. But, on that note, what's to prevent someone from submitting all of the quiz solutions to the 'community'? Are the submissions occasionally moderated?
I have appreciated this website for a while now. For those who don't know, Lindrian is also often active on #regex on freenode IRC, which is a great place to get feedback on regexes. (Or to just be told many times not to use regexes to parse HTML.)
You're not just nitpicking some blog template or something.
1. The delay between updating the regex/test text and seeing the result is a little long. I find regex tools much more useful if I can see the results change as I'm typing.
2. I did a simple regex with two capture groups and the second backreference came up red in the matches box. As soon as I see red, I assume there's an error. Might be worth removing those "danger colours" from the list.
Other than that, looking good!
However, this is more of a debugger when you already have some idea how to write a regex to match a particular string. Are there any complete regex builders where you can select components (such as greedy or not, positive or not) when you can't remember the specific syntax?
Would love to talk about other ways to work together as well – drop me a line: email@example.com
1. The ability to escape a string when searching using vi:
2. Lots of regex examples with a description of how they work.
It's a similar concept, except that the matching is highlighted in the same input field of your target value.
On the other hand, if you're planning on adding something like a public leaderboard of names, then I guess that would change the nature of the game. Glory, instead of learning or personal challenge. And cheating becomes a problem.
I managed to mess up some entries of the database, thats why you see some ungodly stuff like 11b email validation. I'll patch it up.