Replacing all spaces with tabs

travisowens

Well-known member
Joined
Feb 11, 2004
Messages
108
Location
Rochester, NY
PS: ignore all quotes, just there to wrap up the regex, also this forum trims spaces so Ive said 4 spaces instead of typing them.

Does VS2005s search & replace lack full RegEx support (ala .Nets)? Im trying to safely convert the 4 space indents to tabs, and want to do this safely. Meaning I dont 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 didnt like them, what am I doing wrong?
C#:
^(    ){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?!
 
Last edited by a moderator:
Back
Top