Search and delete on unc paths

General discussions about Advanced Find and Replace
Post Reply
bsd1
Posts: 2
Joined: Fri Jun 16, 2006 9:40 am

Search and delete on unc paths

Post by bsd1 » Fri Jun 16, 2006 9:45 am

Hello,

I'm trying to do a search and replace on the following:

net use [a-z]: \\\server\\(path|path1|path2|path3)

i.e find "net use r: \\server\path" and delete the line from the file

The server name is always the same and there are a number of paths as indicated above. The Batch Replace never seems to work so I'm guessing my regular expressions are incorrectly used. Any advice on what search command I should be using? There are up to 7 lines to be deleted in the files I have.

Thanks for any help.

B

bsd1
Posts: 2
Joined: Fri Jun 16, 2006 9:40 am

Post by bsd1 » Fri Jun 16, 2006 10:17 am

Looking at past replies it'll probably be easier for me to delete the whole line when finding just the path.

Data example:

net use r: \\server\path
net use q: \\server\path1
net use r: \\server\path2


Search for:

\\server\path

Search expression (I've tried the following but it's not working):

.*server\\path.*\r\n

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests