- Tuesday, September 11, 2007
A Better .NET Regular Expression Tester
Because the only other online tool I could find for testing .NET regular expressions was slow and covered with ads, I decided to write a simple AJAX regular expression tester. It's certainly not fancy, but it works for me.
Comments
- Tuesday, September 11, 2007 9:04:47 PM by Jim WelchThanks! Nice tool. Maybe you could incorporate some nice ajax callbacks to search regexlib's web service? (http://regexlib.com/WebServices.asmx) Then it'll be nearly perfect. :)
- Tuesday, September 11, 2007 9:16:13 PM by DerekThat's a great idea, Jim -- I'll look into it.
- Wednesday, September 12, 2007 3:07:25 PM by jhunterHave you considered releasing the source for this so someone can create a windows forms version easily?
- Wednesday, September 19, 2007 9:17:20 AM by Fabricejhunter, there are already several Windows Forms tools for testing regular expressions. See http://sharptoolbox.com/categories/regular-expressions
- Thursday, September 27, 2007 8:48:46 PM by bkhvihvbijhbI don't think you can call something "better" without supplying some sort of test results. What is yours better than?
- Thursday, October 04, 2007 5:15:39 PM by Aleksey MalishkinThis is the greatest thing in the world! THANKS!!!!
- Friday, January 25, 2008 2:06:56 PM by Hue HolleranReally useful, Derek - the best around. Could I request one addition, please: could you add the group name to the output please? ie. pattern:@"--\s*\[\s*TABLE\s*\(\s*(?<table>.*?)\s*\)\s*\]", text:"-- [ TaBle ( bob ) ]" - I'd like to see the captured group name - would you consider doing this, please?
- Wednesday, February 06, 2008 1:04:00 PM by Poor RichardWorks great. Just would like to see the results without having to scrool down (at least on my screen).
Thanks. -- Richard - Wednesday, February 06, 2008 1:08:39 PM by Poor RichardOops! My mistake. You just need to scroll down once and it all stays on screen.
Great! -- Rik
PS: Nice if you either underline the matches or made them bold or red. - Thursday, February 21, 2008 9:35:43 PM by LeeKJust perfect Derek - it's bookmarked for me now. Thanks 1,000,000.
- Monday, March 24, 2008 11:49:51 PM by AnonymousHi, great regexp tester, thanks! I was trying to figure out why my matches weren't working, then I realized I was cutting and pasting text from Notepad into the Pattern section which includes a newline. Since my input didn't include a newline, the match failed.
- Wednesday, April 09, 2008 1:04:57 PM by skymultiline and singleline are mutually exclusive. they have nothing to do with how many lines are in the target. multiline off set the eol and bol anchors to match eof and bof. singleline on lets . match all characters including /n
good luck. - Wednesday, April 09, 2008 1:05:32 PM by skyOOPS - meant NOT mutually exclusive
- Monday, May 05, 2008 7:52:48 PM by Yakko WarnerEchoing sky's comment. I actually had a situation that was solved (thanks to a MS MVP in an MSDN forum) by setting both SingleLine *and* MultiLine at the same time. So it does have its purpose.
- Friday, May 30, 2008 10:24:34 AM by Robbeen looking for one of these for ages. Really nice work.
- Friday, June 13, 2008 7:10:24 PM by sahilI was testing with the regex class in .net 2.0 using c# and my regex and source would not give me a match. This tool does give me a match. Any Ideas?
Great tool though, i must add. - Tuesday, July 22, 2008 3:24:27 PM by WalterThanks for this one. Saved my day!