Syringe.Net.Nz
Irregular Injection of Opinion
RSS 2.0|Atom 1.0|CDF

 Thursday, June 07, 2007
Stripping Line Numbers from Code....

Say you've got some code with line numbers

1: using System;
2: using System.IO;

...

1430: else if (1==0)

blah blah...

 

And you want to strip out the line numbers.

This regex: ^[ 0-9]*\:

will do it for you. THanks go to the new regex building in Orcas :-)

.NET|Thursday, June 07, 2007 6:03:04 AM UTC|Comments [702]|