travisowens Posted January 30, 2007 Posted January 30, 2007 (edited) PS: ignore all quotes, just there to wrap up the regex, also this forum trims spaces so I've said 4 spaces instead of typing them. Does VS2005's search & replace lack full RegEx support (ala .Net's)? I'm trying to safely convert the 4 space indents to tabs, and want to do this safely. Meaning I don't want to simply convert "4 spaces" to "\t" just in case some string or other (non indenting) spacing exists. I tried the following RegExs and VS2005 didn't like them, what am I doing wrong? ^( ){1,} ^(\s{4}){1,}Anybody reading this should read those as 4 spaces, in sets of 1 or more that start at the beginning of the line. The only thing I can get to work in VS2005 is "^4 spaces". I cannot do sets or use \s, what gives?! Edited January 30, 2007 by travisowens Quote Experience is something you don't get until just after the moment you needed it
travisowens Posted February 1, 2007 Author Posted February 1, 2007 RESOLVED It seems VS2005 does have decent RegEx support, but it uses it's own syntax. Silly me for not clicking the arrow next to the textbox to see it. You can also read up about it at: http://www.codinghorror.com/blog/archives/000633.html Quote Experience is something you don't get until just after the moment you needed it
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.