你如何调试正则表达式? [英] How do you debug a regex?

查看:181
本文介绍了你如何调试正则表达式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正则表达式变得相当复杂。缺乏空白,难以阅读。我无法通过一个调试器的正则表达式。那么专家如何调试复杂的正则表达式?

解决方案

你买


Regular expressions can become quite complex. The lack of white space makes them difficult to read. I can't step though a regular expression with a debugger. So how do experts debug complex regular expressions?

解决方案

You buy RegexBuddy and use its built in debug feature. If you work with regexes more than twice a year, you will make this money back in time saved in no time. RegexBuddy will also help you to create simple and complex regular expressions, and even generate the code for you in a variety of languages.

Also, according to the developer, this tool runs nearly flawlessly on Linux when used with WINE.

这篇关于你如何调试正则表达式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆