MGBrown.com Hunk

MGBlog

Monday, 21 March 2005

Mon, 21 Mar 2005 - 10:36pm (GMT+0)
Comments

My Regular Expression Editor "RegEx Editor 1.0" Released

Have you ever wanted to develop a complex regular expression and test it? Is Visual Studio's Search and Replace dialog just not cutting it? Well RegEx Editor might just be the answer.

It is a simple concept, enter some text to test on, a regular expression and a replace string then use the IsMatch, Matches or the Replace button. RegEx Editor includes full support for Groups and Replace Strings. The Regular Expression's match results are displayed in a neat grid with single click sorting.

Download it now from my Downloads page.

Comments

Re: My Reglar Expression Editor "RegEx Editor 1.0" Released

It needs a menu item for copying the RegEx to the clipboard in different formats.

For example one could escape quotes and slashes in C# style. Another could do this in VB.Net format.

Re: My Regular Expression Editor "RegEx Editor 1.0" Released

This is for the person that ended up here by serching for "How to represent slashes in Regular Expressions" in Google.

The slash \ character in a regular expression is used for escaping special characters . $ ^ { [ ( | ) * + ? \ so that they no longer have their special meanng.

So to match full stops . you need to enter \.

To match slashes you need to use two, so \\ matches \

To make things just a little harder C based languages (C, C++, C#, Java etc) also use a slash to escape special characters. So if you are using one of these languages to store your RegEx as a string constant you need to double the slashes again.

So in C, to match a \ you need to use a regular expression string constant that looks like this "\\\\".

Re: My Regular Expression Editor "RegEx Editor 1.0" Released

Just downloaded this and it's great. I am learning to use regular expressions for use in mod rewrite.

Just the job.

Thanks

Re: My Regular Expression Editor "RegEx Editor 1.0" Released

Re: My Regular Expression Editor "RegEx Editor 1.0" Released


Isn't it about time you upgraded it to .NET 2?

Re: My Regular Expression Editor "RegEx Editor 1.0" Released


Well yes, I guess it is. I'm a touch busy these days though so don't hold your breath.

Add Your Comment

Your Name:
Harry Potter
Your homepage URL (optional):  
http://www.mgbrown.com
Title:*
Comment:*
Copy code into box:
 
* HTML tags not supported