While working on some ASP.NET form validation today, I came across a great regex tester / builder called Regex Hero. The main feature is their .NET Regex Tester, a Silverlight app, and while it requires registration (Google, Yahoo, AOL, OpenID, etc.), this gives you the ability save your regular expressions to your personal library on the site. You can also use the site’s public library, but contributions are a little anemic at this point. The app has a few other nice features, including real-time expression matching, a built-in regular expression reference, .NET code generation, and performance benchmarking.
The app is free for basic use, but it will nag you every 5 minutes to buy the paid version. The full version is $20 and comes with the nice addition of Intellisense-like code completion and a desktop version of the app. Future upgrades are free for the full version.
I recently had to analyze how much static data the web server was sending out on a daily basis. We wanted to try to get a sense of what it would cost to host all this static content on the new Amazon Cloudfront CDN (content delivery network).
I knew there had to be something out there, but I didn’t know there was something right in the IIS 6 resource kit called LogParser.
There are a bunch of options in log parser, but the one I thought was way cool was the ability to basically “query” the log. For example:
LogParser “Select count(*), sum(sc-bytes) from d:\logs\w3svc1\ex090922.log where cs-uri-stem like ‘%.jpg’ or cs-uri-stem like ‘%.gif’ or cs-uri-stem like ‘%.swf’ or cs-uri-stem like ‘%.css’ or cs-uri-stem like ‘%.js’ or cs-uri-stem like ‘%.pdf’ or cs-uri-stem like ‘%.png’ or cs-uri-stem like ‘%.cur’”
returns: