If you are running a Web Site Project, yet you still want to have a build number somewhere in your application, this article will explain how you can create a simple tool to have an auto-increment build number and execute it using CruiseControl.NET
Link to a nifty tool on building regular expressions