Skip to main content

Regex Hero's Debut

So last week I launched regexhero.com and submitted it to a few social bookmarking sites (Dotnetkicks.com happened to be the most effective). Since then I've had 368 visits to the site. That's a pretty strong start for a brand new website.

What Does The Tool Do?
Regex Hero will dynamically highlight regular expression matches as you type. The whole idea behind it is to save as much time as possible and make it as convenient as possible to work with regular expressions.

What's Special About It?
It's the first online .NET regular expression tester with instantaneous highlighting that I know of. (Someone please correct me if I'm wrong.) Microsoft Silverlight lends itself to this functionality perfectly. I essentially wrote it and got it online in 3 days. Since then I've made some tweaks and minor improvements, but nevertheless it was extremely easy to build and I have to thank Microsoft and their development tools for that.

The other thing I was surprised about is just how well .NET regular expressions are optimized. You can see for yourself if you use the benchmark feature in Regex Hero. On my computer it'll perform regular expression matching 500,000 times in one second, easy. The way .NET compiles and caches regular expression seems to really make it scream. That kind of performance helps with the instantaneous highlighting. I mean, you can create a huge target string and it'll still find and highlight the matches within milliseconds after every key press.

Will it Always be Free?
That's a tough question. Most likely, the online version you see now will always be free. But I may at some point create a desktop (WPF) version that I'll sell for cheap.

What's Coming Next?
I'm trying to figure out how to display the exception properly when you write an invalid regular expression. Essentially, since Silverlight excludes the necessary debugging assemblies, it won't provide the same exception detail I'm used to. Once I get that figured out you should see better error messages.

Then the next thing for me to do is add the ability to replace text with regular expressions. Other than that, I'm open to suggestions.

Comments

  1. Hey, not that it's a work of art like Regex Hero (kudos) but there is another Silverlight Regular Expression tool - a variant of my tool nregex (http://nregex.com) called nregex9 at:
    http://nregex.com/nregex9/

    ReplyDelete
  2. Thanks David.

    That's one I missed. I remember finding your site but I guess I missed your Silverlight version. Google searching > me.

    ReplyDelete

Post a Comment

Popular posts from this blog

Regex Hero for Windows 10 is Underway

Awhile back I began working on an HTML5 / JavaScript version of Regex Hero . However, it was a huge undertaking essentially requiring a complete rewrite of the entire application. I have not had enough time to dedicate to this lately. So I've begun again, this time rewriting Regex Hero to work in WPF. It'll be usable in Windows 10 and downloadable from the Microsoft Store. This is a much easier task that also has the advantage of running the .NET regex library from the application itself. This will allow for the same speedy experience of testing your regular expressions and getting instant feedback that Regex Hero users have always enjoyed. I expect the first release to be ready in Q4 of 2019.

Optimizing Your Regular Expressions

Regular expressions will backtrack.  That's an unfortunate thing about them because backtracking can be slow.    And in certain (rare) cases the performance can become so awful that executing the regular expression against a relatively short string could take over a minute.  There's a good article about catastrophic backtracking over at regular-expressions.info . And today I created a video about all of this called  Regex Lesson 5: Optimization .  In the video I start with a very poorly written regular expression and make several improvements to it, using the benchmarking feature along the way.  By the end of the video I make the regular expression over 3 million times faster. In addition, today's update to Regex Hero provides a little message in the event that you encounter a regular expression that takes over 10 seconds to evaluate... And then last of all, I changed the benchmarking feature a bit.  In the past it would simply test your regular expression against

Installer for Desktop version of Regex Hero

As Firefox just dropped support for Silverlight I really needed a solution for Regex Hero. So I created an installer for it. It's still Silverlight, but by using the installer you can install it directly to your computer and never need to open it in a browser. If you visit regexhero.net/tester and don't have a browser that supports Silverlight (IE is the only one left), then you'll see download links for 64-bit and 32-bit versions of the installer. When you install it you'll see a link over on the right hand side that says "Activate Regex Hero". This process connects your desktop version of Regex Hero with your online account. So if you're a licensed user this is how you'll gain access to all of those licensed features. Note: Currently there will be a security warning when you try to run either one of these installers. I'm in the process of obtaining a code signing certificate and will update them as soon as possible. You may be wondering a