ghacks Technology News

Regular Expression Coach

regular expressionsRegular expression can be used to identify strings of text. They are written in a formal language that looks hard to understand on first glance but follows strict rules. Most users associated regular expressions with programming languages and while this is surely a dominant area regular expressions are supported in text editors and other tools. One of the most popular is probably grep in the Linux operating system.

The Regex Coach is an excellent software program to learn regular expressions as it displays realtime results in its interface. The interface itself is divided into two display panes that contain the regular expression and the target strings. Below are tabs and buttons that provide additional functionality.

A user who wants to test a regular expression would enter it in the first column and add a target string in the second. The program automatically highlights the area of the target string that is matched by the regular expression. Any modification to the regular expression will automatically be visualized in the target string pane.

regular expressions

Invalid entries are displayed automatically as a status message. The program will for instance notify the user if a bracket has not been closed which would make the expression invalid.

regular expression coach

The Regex Coach is a learning by doing aid for learning or verifying regular expressions. There is still need for a documentation on regular expressions like this one.

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.

Related Articles:

RegName, Fast Regular Expression Based File Name Changer
Manage your Tasks with Task Coach
Microsoft Expression Encoder, HD Screen Capturing Tool
Record Your PC Screen for Free with MS Expression Encoder
Power searching Linux with SearchMonkey



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Tuesday April 14, 2009 -
Tags:, , , , , ,


Responses so far:

  1. Speaking of Perl saving the day, you can create a regular expression with 9 lines of Perl code.

    #!/usr/bin/perl
    while () {
    chomp;
    if (/YOUR_REGULAR_EXPRESSION_GOES_HERE/) {
    print “Matched: |$`$’|\n”;
    } else {
    print “No match: |$_|\n”;
    }
    }

  2. Mohamed Shafi says:

    There is another similar one . You can find it here

    http://gskinner.com/RegExr/

    This has both an online and desktop version. I use this.

  3. Kane says:

    Mohamed Shafi: Thanks. This one works a little better for someone with very little regex experience.

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us