1.5 supports \ & / regardless of 'Options | Search | Replace'

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

1.5 supports \ & / regardless of 'Options | Search | Replace'

Post by therube »

1.5 supports \ & / regardless of 'Options | Search | Replace'

I never realized, but 1.5 supports \ & / regardless of 'Replace forward slashes with backslashes' setting - at least in some areas.
In particular in file paths, where you can use \ or / or \ and / or even \/ ;-).

c:/out/mmm/gui
c:\out\mmm\gui
c:/out\mmm/gui
c:\/out\/mmm\/gui


(Other areas might present gotcha's, but you can even get away with something weird like: regex:c:\\out/\mmm.)
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: 1.5 supports \ & / regardless of 'Options | Search | Replace'

Post by void »

Simple filename searches will treat \ and / the same.

Both are treated as path separators.

/ will not match \ when using regex or wildcards.
For regex and wildcards you'll need to enable Tools -> Options -> Search -> Replace forward slashes with backslashes
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: 1.5 supports \ & / regardless of 'Options | Search | Replace'

Post by therube »

something weird like: regex:c:\\out/\mmm
I guess that is not really weird, when you think about it.
Replace forward slashes with backslashes
Which I always do have enabled.

So the "weird", /\, is simply escaping the 'm' (which serves no actual purpose) so it's just ignored.
Post Reply