What is The Regulator?

 

 

New: Regulazy - Point & Click Regular Expressions.

Also: Regex Visualizers for Visual Studio 2005 RTM are now available.



 

 

 

The Regulator is an advanced, free regular expressions testing and learning tool written by Roy Osherove.
It allows you to build and verify a regular expression against any text input, file or web, and displays matching, splitting or replacement results within an easy to understand, hierarchical tree.

The Regulator was created and is maintained by Roy Osherove.

You canDownload the latest version here (2.0.3).

 

News   

The Regulator featured on Microsoft's Channel 9 - 30-Dec-2004
Josh Ledgard pinged me to let me know that he showed The Regulator on this Channel 9 video, along with PInvoke.Net, as two samples of community built helpful applications. Coolness! One thing to note is that Josh mentioned RegexLib.com which is a great community site which lets you search and store Regular expressions easily. Anyway, Regexlib.Com is being run and was conceived totally not by me, but by Darren Neimke, who is one of the Regex gurus and also an MVP. I just used the web services that Regexlib.com exposes to find and store regex. Darren has also been busy putting up Project Distributor which allows you to upload your code and other cool development stuff to share with the public or just your friends (think CodeProject, only you can can choose to only let your friends in).   read more...
The Regulator featured on MSDN Magazine - 19-Jun-2004
MSDN Magazine has an article by James Avery called :
Ten Must-Have Tools Every Developer Should Download Now.
I was very flattered to learn that my little adventure in regular expressions, The Regulator , is named in that respectable list (although the screen shot is totally out of date...)
Thanks for the Kudos. I appreciate it. Other than The Regulator there are some must-explore tools you will probably need at one point or another, or even on a daily basis. Be sure to check it out.
A few updates on the state of the current version:
- There's a really stupid problem with the Installer for the .net 1.0 version of the tool: It requires .Net 1.1 to run :) My bad - I totally messed up and forgot to change the required runtime setting for the setup project.
- If you're running in Non-Admin mode - you'll crash when trying to close it or save a file. I'm working on it to save settings into an IsolatedStorage file, but to make it write a file you'll have to make it trusted anyway.
- Intellisense still sucks a bit, mostly because the Awesome Edit control donated by Syncfusion is a little lacking in this area. I'll make it work somehow. For now you can disable Intellisense via the general settings dialog.

I'll work on all these issues in the soon coming new version.   read more...

Version 2.0.3 with Integrated help - finally! - 1-Jun-2004
It's done. The new version of The Regulator now comes with a full blown Help file that details how to use the darn thing. Learn well, grasshoppers. BTW: the help file is the ONLY thing changed from version 2.02 so you can just download the Regulator2Help.zip file from the download page instead of the whole release if you have version 2.0.2 installed - but then you won't get the nice F1-help-appearing magic trick, would you? :)   read more...
The Regulator is recommended by RegexLib.com - 6-Apr-2004
Regexlib.com have selected The Regulator as their recommended resource for testing and creating regular expressions. This is mostly due to the fact that The Regulator uses Regexlib.com's web services for quick search and submitting of regular expressions from Regexlib.com's site. I am Honored.   read more...
The Regulator moves to SourceForge - 6-Apr-2004
After much deliberation, I've decided to move the Regulator binary download over to SourceForge.   read more...
Running The Regulator on .Net v. 1.0 - 19-Mar-2004
Up until now, The Regulator could only run on .Net 1.1. Now you can run it against .Net 1.0 using this config file (Click the "more" link). just put it in along with the regulator.exe file and run. I took the config settings from Jeff Key's Snippet Compiler config file, since he was having the same problem with his users. So, thanks Jeff.   read more...
Announcing The Regulator Wiki - 8-Jan-2004
The Regulator Wiki is an open reference site for Regulator users. Feel free to edit or change the content in order to help other users optimize their experience with this tool.   read more...
The Regulator reviewed on ADTmag.com - 21-Nov-2003
"In short order, The Regulator has become the most comprehensive of the .NET regex applications out there. And it's still free." -- Mike Gunderloy   read more...

Features 

Supported Regex actions

The Regulator supports the three most common Regex actions:

  • Find multiple Matches 
  • Replace text according to expression
  • Split text according to expression

Regexlib.com integration

  • Search and import expressions and examples from RegexLib.com’s database
  • Post your own regular expressions into regexlib's database, direct from The regulator using a graphical wizard
  • Full Proxy support for secure connections

Text Editing

  • Syntax highlighting
  • Multiple document tabbed interface
  • Quick menus allow you to easily select syntax operations to insert
  • Quick Menus are fully customizable simply by changing a simple XML file in the program directory
  • Brace matching support
  • Make selected text "escaped" to match a specific string exactly without needing to manually write those \s,\n and other escape sequences
  • Collapse/expand selection: you can create collapsible regions in your regex code for easy reading
  • Select only a portion of the expression in the editor and only that selection will be executed as a match\replace

Performance analysis

  • A graphical chart of the latest matches/replaces timings shows you if your optimization efforts are working
  • an exact number (in milliseconds) of last match/replace operation

 

Expert Snippets

  • An easy and simple toolbar of frequently used text snippets is always handy for hard to type expressions
  • The snippets toolbar is fully customizable and any snippet can be edited/deleted or you can just add your own
  • Inserted snippets that contain the "<>" signs will automatically make the text editor set the selection between those signs, allowing you to make generic snippets that save you typing time

General usability features

  • Multi threaded operations : ability to cancel long running expression matches and replaces
  • Minimize to tray option
  • Recent files menu
  • Other small features

  All rights reserved, Roy Osherove 2005