Searching Issues

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
eastmarw
Posts: 4
Joined: Thu Aug 12, 2004 1:04 pm

Searching Issues

Post by eastmarw »

Here is my delima. I have a text file of a server which has every file directory listed on it, along with "Last Access", "Last Modified", & "Creation Date".

What I need to find in this file is the any directory deeper than 14 deep. We have a few offices in the firm where users will just copy files at unbelievable directory depths, 14+. Novell's utilities that are provided that will run at the server console does not like anything directory that goes deeper than 15. If it gets enough of the errors the server will just restart.

They lines of the file look like this:

"Y:\CLR\1040EE6\AEXTFMLA.DAT","(unknown)","8/3/2004","7/15/1997","8/4/2001"

What I need to extract from the file would be anything deeper than 14. So I thought that I could search the number of "\" in the lines but can't quite figure out how to use wildcards for this purpose.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Using POSIX regular expression syntax:
Configuration | Preferences | Editor

[X] Use POSIX regular expression syntax
Using Search | Find... :
Find what: ^"([^\"]*\\){15,}

[X] Regular expression
This catches any path in the first field with 15 or more backslashes.

If you select
Mark All
it will bookmark all lines containing such paths.
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Good solution again from ben_josephs

Remember that this is NOT the place to post questions.......

http://www.textpad.com/forum/viewtopic.php?t=3755
Last edited by Bob Hansen on Thu Aug 12, 2004 4:05 pm, edited 2 times in total.
Hope this was helpful.............good luck,
Bob
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Indeed! And I forgot where I was.
Post Reply