windows Java专用正则表达式测试程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8556306/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Java-specific regular expression testing program
提问by masher
I'm looking for a regular expression testing program that I had installed on my previous workstation that I am now unable to find anywhere.
我正在寻找一个正则表达式测试程序,该程序已安装在我以前的工作站上,但现在在任何地方都找不到。
It was for java-specific regex's, so I'm pretty sure it was written in Java. There were a few tabs across the top, one of which was the explanation of the different regex terms from the Pattern class in the API.
它用于特定于 Java 的正则表达式,所以我很确定它是用 Java 编写的。顶部有几个选项卡,其中之一是对来自 API 中 Pattern 类的不同正则表达式术语的解释。
The top text box was for entering text, the middle text box was for the regex, the bottom text box was where the matches were displayed.
顶部文本框用于输入文本,中间文本框用于正则表达式,底部文本框用于显示匹配项。
I know that it's not much to go on, but does anyone recognise it?
我知道这没什么好说的,但有人认得吗?
采纳答案by masher
回答by Voo
I don't know any specific desktop program that does it, but I personally am using this websitewhich offers most of the stuff you're looking for (apart from the explanations).
我不知道有任何特定的桌面程序可以做到这一点,但我个人正在使用这个网站,它提供了您正在寻找的大部分内容(除了解释)。
I'd at least give it a look - great program in my opinion. Offers all the important flags, several different strings to test and prints out the java string of the given RE (so not manually inserting \ wherever it's necessary!)
我至少会看一看 - 在我看来这是一个很棒的程序。提供所有重要的标志,几个不同的字符串来测试并打印出给定 RE 的 java 字符串(所以不要在需要的地方手动插入 \!)
回答by Chip McCormick
If it doesn't need to be Java-specific, use Regex Coach. I use it for Java expressions and haven't run into a problem yet.
如果不需要特定于 Java,请使用Regex Coach。我将它用于 Java 表达式并且还没有遇到问题。
回答by Dan Cruz
Could it be RegexBuddy. It supports Java. You can find screenshots here.
可能是RegexBuddy。它支持Java。您可以在此处找到屏幕截图。
You can see this StackOverflow Q&Afor more suggestions.
您可以查看此StackOverflow 问答以获取更多建议。
回答by Santhosh Gutta
try Kodos regex tester (for windows), a good regex tool. I have used them initially to test regex patterns and used them in Java.
试试 Kodos regex tester (for windows),一个很好的正则表达式工具。我最初使用它们来测试正则表达式模式并在 Java 中使用它们。
回答by Marc Giombetti
To my opinion http://regex101.comis by far the best online regex checker for various regex formats, including Java Regex which You asked for. It even lets you debug all the steps (including forward and backward lookup) and explains the terms of the regex you develop!
在我看来,http://regex101.com是迄今为止各种正则表达式格式的最佳在线正则表达式检查器,包括您要求的 Java 正则表达式。它甚至可以让您调试所有步骤(包括向前和向后查找)并解释您开发的正则表达式的术语!