Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing regular expressions tool (Linux/ubuntu) [closed]

Tags:

I searched for a question about regexp testing/learning tools, but people usually suggest Windows based solution. I found one for ubuntu: redit. However, I'm wondering if there are better tools for the job. So, without further ado

Q: What is the best tool for testing/leadning regular expressions    for linux/ubuntu?

Sorry if this is a superuser kind of question. Thx

like image 563
hummingBird Avatar asked Oct 26 '10 08:10

hummingBird


People also ask

How do you check if a regular expression is valid or not?

new String(). matches(regEx) can be directly be used with try-catch to identify if regEx is valid. While this does accomplish the end result, Pattern. compile(regEx) is simpler (and is exactly what will end up happening anyway) and doesn't have any additional complexity.

How does regEx work in Linux?

Regular expression is also called regex or regexp. It is a very powerful tool in Linux. Regular expression is a pattern for a matching string that follows some pattern. Regex can be used in a variety of programs like grep, sed, vi, bash, rename and many more.

What is regEx Ubuntu?

Regexps are acronyms for regular expressions. Regular expressions are special characters or sets of characters that help us to search for data and match the complex pattern. Regexps are most commonly used with the Linux commands:- grep, sed, tr, vi. The following are some basic regular expressions: Sr.

What is regEx testing?

JavaScript RegExp test() The test() method tests for a match in a string. If it finds a match, it returns true, otherwise it returns false.


2 Answers

I rather like Kodos, which is a cross-platform GUI regex tester.

But there are many others. Have a look at the answers to How do you debug a regex? , there are many cross-platform solutions listed.

like image 114
sleske Avatar answered Sep 29 '22 12:09

sleske


Why don't use web-base tools: http://regexpal.com/ and more here

like image 30
pinichi Avatar answered Sep 29 '22 12:09

pinichi