Regular expression to remove all text except...

Posted by Barryman9000 on Stack Overflow See other posts from Stack Overflow or by Barryman9000
Published on 2010-06-09T23:55:40Z Indexed on 2010/06/10 0:02 UTC
Read the original article Hit count: 298

Filed under:
|

There may be an easier way, and if there is I'm all for it. However - my ASP.NET page has a TON of controls on it, and I've given them all ID's that start with underscore. I copied all the markup into Notepad++ and I'm trying to find a regular expression that will find everything but the controls and replace it with whitespace. that way I'll have a text file that has all my control names which I'll probably throw into Excel and do some string manipulation to add ".Text = " etc.

Any suggestions?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about regex