Just Great Software

Regex Buddy - Learn, create, understand, test, use and store regular expressions

 Introduction 

 

 Buy Now 

 Our Guarantee 

 Download 

 Testimonials 

 Contact Us 

 User Forum 

 

 Screen Shots 

 Live Demos 

 Regular Expressions 

 Features & Benefits 

 Learn 

 Build 

 Understand 

 Test & Highlight 

 Debug 

 Use & Implement 

 Save & Reuse 

 GREP 

 Integrate 

 Programming 

 Linux 

 

 Press Resources 

 Version History 

 Newsletter 

 Affiliates 

 

 

PowerGREP - Find files and information or search and replace through files and folders
EditPad - Convenient, powerful and versatile text editor to edit all kinds of text files
Ace Text - Store, manage, edit and reuse text from a central location
HelpScribble - Full-featured help authoring tool for creating help files from start to finish
DeployMaster - Installation builder delivering your software with a good first impression
      

Test, Verify and Debug Regular Expressions without Risking Important Data

Regex Tester and Debugger

RegexBuddy makes it easier than ever for you to create regular expressions that do what you intend, without any guesswork. Still, you need to test your regex patterns to be 100% sure that they match what you want, and don't match what you don't want. RegexBuddy makes debugging regular expressions practical and safe.

Don't risk actual data with untested regexes. Copy and paste sample data into RegexBuddy, or open test files. Step through the search matches in the sample data, and get a detailed report about each match. Or highlight all matches to test the regex in real time as you edit it.

When you plan to use a regex in a search-and-replace operation, preview the search and replace in RegexBuddy. If you want to split a string using a regex, check the result in RegexBuddy. Avoid nasty surprises when using a regular expression to modify real data or files.

If the regular expression doesn't work the way you expect, click the debug button to see exactly how the regex match is found or attempted. RegexBuddy eliminates all guesswork.

      
Only US$ 39.95
Windows 98, ME, NT4, 2000, XP and Vista
100% satisfied or money back
"First of all fantastic tool! Better than anything else currently out there that I've tried. The fast real-time match highlighting is so productive! And a great informative tutorial too."

-- Jeff Atwood
   1 July 2004, North Carolina, USA

Avoid Common Regex Traps

Regular expressions are very powerful. Part of their power comes from subtle differences in the various regex building blocks. RegexBuddy does a very good job of pointing out the subtleties while you create the regex. Yet, testing the regex is the only way to make sure.

Let's say you want to find double-quoted strings. An obvious solution is:

".*"

  • Match the character """ literally
  • Match any single character that is not a line break character
    • Between zero and unlimited times, as many times as possible, giving back as needed (greedy)
  • Match the character """ literally

Did you spot the mistake? Let RegexBuddy show it to you (first image at the right).

If you debug this regular expression with RegexBuddy, you'll instantly notice that the combination of "any character" (i.e. including double quotes) and "as many times as possible" results in a regex that includes double quotes in strings. People new to regular expressions often make this mistake. One solution is to repeat "any character" only "as few times as possible".

".*?"

  • Match the character """ literally
  • Match any single character that is not a line break character
    • Between zero and unlimited times, as few times as possible, expanding as needed (lazy)
  • Match the character """ literally

Let RegexBuddy Make Regex Easy for You

RegexBuddy showing the mistake in a regular expression

RegexBuddy showing the mistake in a regular expression


Verifying with RegexBuddy that a regular expression is correct

Verifying with RegexBuddy that a regular expression is correct

 

 

Page URL: http://www.regexbuddy.com/test.html
Page last updated: 09 January 2008
Site last updated: 06 May 2008

Published by Just Great Software Co. Ltd.
Copyright © 2004-2008 Jan Goyvaerts.
All rights reserved.