Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overfl开发者_Python百科ow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this questionI'm looking for an online utility that will prettify and add explanatory comments to a regular expression. Does one exist?
I like the online tool: http://regexr.com
When you hover over the regular expression you will get an explanation of that part.
For what it's worth, I also like:
- regex101.com, which is quite powerful, but technical. It features timing and steps taken results as well as permalinks for sharing a regex with explanation and test data.
- regexper.com, which draws railroad diagrams of regexes. The results are very nice to look at and easy to understand, but there are no textual explanations.
Both are free to use.
There's a bunch of them listed in Steven Levithan's blog.
regexpal is the one I always use. I prefer it to the Flash-based RegExr.
I currently use http://rick.measham.id.au/paste/explain.pl from Rick Measham. It is a regex explanation tool that simply works.
精彩评论