Regular expression, or often known as regex, is a pattern that consist of rules used to match a certain set of strings. They are extremely powerful, and you’ll need them in most programming languages you come across, especially when there’s a need to scan and match context for further actions.
Here’s a simple example of regular expression – to match all string consist of "regular expression", "regular expressions", "regex", and "regexp" in a content, this is your regular expression pattern –
Now, they might seem a little bit confusing or hard to pick up at first, but once you understand the syntax, you’ll notice it’s pretty simple and definitely very useful for future coding projects. Learning and using Regular Expressions don’t have to be torturous process.
Here’s a list of useful regular expression tools and resources to make your life easier.
A regular expression is a set of characters forming a pattern that can be searched in a string.... Read more
A simple and straightforward RegEx application for macOS to write and test the RegEx matches.
A quite comprehensive app for macOS for writing and testing RegEx. It features real-time syntax highlighting for the RegEx pattern and the matches. It also supports many flavour of RegEx inclding Perl (PCRE), Ruby, bash, grep, and sed. A great app for both beginners and advanced users.
This app allows you to automate code editing in XCode with RegEx. With this you can write an expression whether add a new line, replace or remove it. It’s compatible with XCode 10 and 9 on macOS Mojave or High Sierra.
Expresso is an award winning regex editor suitable for regular expression beginners; it also has a full-featured development environment for programmers and web designers.
An open-source app aims to be a simple functional app with a nice looking UI for macOS. It supports several RegEx flavours including Perl, Ruby, and Java.
Graphical application for Windows which can be used to experiment with (Perl-compatible) regular expressions interactively.
Generates complete regular expressions to your specifications without the need to deal with regular expression syntax.
A quite feature-filled tool to work with RegEx on Windows. It offers real-time syntax hihglighting, search replace the RegEx matches, and support for “named group” in RegEx.
Another handy tool for Windows to write and test RegEx pattern. It works quite straightforward. It feautres 3 input where you can add the text source to test, another input to write the RegEx pattern, and the other input will show the RegEx matches in real-time.
An application for macOS to play with RegEx. It features a beautiful minimalistic UI as well as supports for the macOS Dark Mode.
Allows you to develop and test a complex RegEx patterns easily and save them for later use. It can also generate a sample code based on the pattern to use in Swift or Objective-C code.
Created by gskinner, this is one of the best online regular expression tool we’ve seen so far. It is community driven with useful examples of regex syntax. Supports match and replace.
One of the most popular and full-featured RegEx online tools. Aside of the input to test the .
Ruby-based regular expression editor. Handy and simple way to test your regular expressions on the web.
This service uses PHP regular expression functions as a base for its operations. It can be useful for programmers of other languages as well.
One of the web based python regular expression tool for rapidly testing regular expressions. Includes support for python regex specific functions such as dotall and unicode.
A collection of commonly used RegEx expression like those to match a
phone number with explanation on what each expression match for. A time saver and a great source to learn RegEx.
A handy tool to write RegEx pattern and test with PHP function like
preg_replace right from the browser.
Compose RegEx expression conveniently with UI. You can just click, select the condition, and drag-n-drop to rearrange the position of the syntax.
An add-on that allows you to write a RegEx expression and show the current matches in a side-by-side document.
A add-on that will launch a tool on its own screen on Visual Studio Code to develop and test RegEx pattern. Built with PCRE and currently supports supports “match”, “match all”, “split”, “replace”, and “replace all”.
An add-on to visualize your regular expression pattern on Visual Studio Code with a flowchart.
We are probably just scratching the surfaces of useful Regular Expression tools. If you think we’ve missed a good piece regex article or tools , please leave a comment below. Thanks!