You are here: PSPad forum > English discussion forum > Multi-Search

Multi-Search

Goto Page: Previous1 2 3 4 5 6 Next

#41 Re: Multi-Search

Posted by: pspad | Date: 2014-10-05 10:58 | IP: IP Logged

OK. Several useful suggestions for you:

- If you are not able to write longer sentences, write more short ones. If you write 2 short sentences only, nobody will understand you.

- Use examples - original lines and result what you want to get. Example will tell more than long description.
Write example as text, not as pictures. Picture is good to show something (good for your request what you want to extend). But picture is unusable for text processing. Nobody has enough time to rewrite text from your pictures e.g. to test regular expressions.

- Before you will send request, try to think if people will be able to understand you. Read it twice or more times before sending.

- Try to be polite, don't use rude words. Why should people waste their free time with you, if you don't react on their questions, when you answer nonsenses. You are the one who is asking for help. People here are not paid to answer you. It's their own will and decision if they will spend their own free time with you or they won't.

Options: Reply | Quote | Up ^


#42 Re: Multi-Search

Posted by: maki | Date: 2014-10-05 11:15 | IP: IP Logged

PSPad 4.9.0
I'll try to explain with an example.

1.Open text file
E:\FolderName\Sub-FolderName\t_db1234568786e.jpg
Y:\FolderName\Sub-FolderName\b_6c663ccc.jpg

2.Find all the names in the lines?
3.Copy all the lines.
example: Y:\FolderName\Sub-FolderName\b_6c663ccc.jpg

Find
-198NLg123456123456.jpg
0v2YCjQZnXo.jpg
2QMv9pNRqvE.jpg
3LobFqHWjLY.jpg
FRMFxi3d-dg.jpg
IHcri35LrcI.jpg
J1234565665zw3cdjg.jpg
Jwq9OMSBUSU.jpg
MPZvGVHrk98.jpg
oEDEWOqJUKw.jpg
qtjNQXyFkUM.jpg
SJE0JiTg77M.jpg
b_123456b8fd812345656123456.jpg
ne9RNX12345656_EUk.jpg
smJ12345656BS2y9fM.jpg
t_00d912345656ce12345656.jpg
t_1b93123456123456e8.jpg
t_2ce32123456567b.jpg
t_25b601234565627.jpg
t_833c71234565687.jpg
t_1234569773ec2.jpg
t_1234565612345656581234568be.jpg
t_db1234568786e.jpg
t_ec8f6e89.jpg
s_0b12345656b28d2.jpg
s_31dd78ee.jpg
b_6c663ccc.jpg
b_123456561234567259be.jpg
b_b8c066bd.jpg
p_12345656e5212345651234565612345656.jpg
p_e53b123456565eb.jpg
CIs9pysfkz123456.jpg
0c3tnLHX5mc.jpg
grW12345656K18123456bH123456.jpg
gWNveYRjz9s.jpg
vicFyhMF0-w.jpg
p_123456560123456567b812345656f.jpg
p_123456e83093d.jpg
p_9939012345613.jpg
p_e20cbd90.jpg
123456WIKjRg_CuM.jpg
1234561J5Ftn3L2123456.jpg
96OPwyLILI12345656.jpg
DOf6k1234565627wDI.jpg
Hn9_UcGcTJ123456.jpg
K112345656jBe1ROeo.jpg
ln12345656xNbYtIl12345656.jpg
n123456568cRs123456tVso.jpg
Nvhoh0Ny1pY.jpg
OEv9TsQu_po.jpg
pTm1234560MuB0Bc.jpg
Q17tRg0g0nI.jpg
Qjezwuzztfc.jpg
QsT5N_KUTzc.jpg
Sk2TNmNSBXQ.jpg
tYfRvoZSz2M.jpg
ukLkkmsQ19E.jpg
s_912345656123456d12345656d97.jpg
s_68f111e8.jpg
s_12345656766b782.jpg
Y2BuGDUNQlI.jpg
b_f123456569f3ec123456.jpg
p_1123456f912345692d.jpg
p_9037d123456dd.jpg
p_092618d2.jpg
p_12345656f0123456561cc9.jpg
p_d323812345662.jpg
2P-Pl9gyqgQ.jpg
6fDYzK7_12345656i0.jpg
7HXpe6gjyEk.jpg
8NKsdxmLnBg.jpg
62QcGb_bM2Q.jpg
_whgXVelkv0.jpg
IDI0jrStRTU.jpg
T3Oo3tmv-Jw.jpg
t_012345656571234565635e.jpg
t_0bc1fd012345656.jpg
t_1123456568f68e0.jpg
t_3123456569e312345699.jpg
L_CgLWkUIOg.jpg
MTfdNPGOf6Q.jpg
MwfC123456R0lSkQ.jpg
ptn81Fkh12345656_c.jpg
q31234562bSljNBE.jpg
QWkUNZoT6gQ.jpg
uxZZw72T8oc.jpg
x12345656mP1n7NVF12345656.jpg
YtyqVTUbWcM.jpg
5vXEtYcoYbQ.jpg
s_72181234565657f.jpg
b_012345656528755.jpg
b_8b65eb123456569.jpg
b_19b212345656e67.jpg
b_26f1234565686ed.jpg
b_371c3ef12345656.jpg
b_579b0687.jpg
b_cc9912345656d2f.jpg
b_dbb8912345670.jpg
b_ecb123456b123456123456562.jpg
b_f21234562f2f5.jpg
p_0123456123456567712345612345656b.jpg
p_58e811fb.jpg
p_cff12345656f123456d7.jpg
p_d12345612345630123456d5.jpg
zjL123456Ym123456u1x0.jpg
p_00d561234562e.jpg
p_3c9e1209.jpg
p_0123456123456567712345612345656b.jpg
p_6e12345656123456b753.jpg
p_7c9e01234561234567.jpg
p_7fcc1234565612345683.jpg
p_8bbb1c38.jpg
p_9123456569c38be.jpg
p_26bedd912345656.jpg
p_58e811fb.jpg
p_89bd123456230.jpg
p_91123456563b3b1.jpg
p_92b5ed3d.jpg
p_093c1ec9.jpg
p_229f111234567.jpg
p_557cee71.jpg
p_559c6f123456f.jpg
p_696c7b123456569.jpg
p_1558d2212345656.jpg

Options: Reply | Quote | Up ^


#43 Re: Multi-Search

Posted by: maki | Date: 2014-10-05 11:22 | IP: IP Logged

Possible add all name ?

image

Options: Reply | Quote | Up ^


#44 Re: Multi-Search

Posted by: pspad | Date: 2014-10-05 11:37 | IP: IP Logged

Small recapitulation:

original lines:
E:\FolderName\Sub-FolderName\t_db1234568786e.jpg
Y:\FolderName\Sub-FolderName\b_6c663ccc.jpg

search for:
t_db1234568786e.jpg
b_6c663ccc.jpg

you want whole file names include path in result. Using regular expressions you have to search for:
^.*\\t_db1234568786e\.jpg

or use simple search without regular expressions for t_db1234568786e.jpg and PSpad will copy into new file whole lines containing text you search for.

If you want to use regular expressions to search for more results, search for:
^.*\\t_db1234568786e\.jpg|^.*\\b_6c663ccc\.jpg|.....
But you are limited to 2048 chars

PSPad doesn't allows you to insert more lines into search field.

Options: Reply | Quote | Up ^


#45 Re: Multi-Search

Posted by: maki | Date: 2014-10-05 11:59 | IP: IP Logged

Quote:
PSPad doesn't allows you to insert more lines into search field.

sad smiley

What Professional tool allows you to insert more?
I want to find 5000 names.

Edited 3 time(s). Last edit at 2014-10-05 12:01 by maki.

Options: Reply | Quote | Up ^


#46 Re: Multi-Search

Posted by: pspad | Date: 2014-10-05 12:40 | IP: IP Logged

I am sorry maki, I don't know such tool. Your request is too specialized.
If more PSPad users will like this functionality, I will add it.
I suggest you to write it as new topic. You have already good description and examples to do it.

Options: Reply | Quote | Up ^


#47 Re: Multi-Search

Posted by: maki | Date: 2014-10-05 13:23 | IP: IP Logged

Every time when I want to,
a)find,
b)edit,
c)open,
etc.
always limits:
1. Limit Chars
2. Limit 2 GB (32-bit)
3. Limit Lines
4. Other limit smiling smiley

Google:
"how to without limited to 2048 chars"

- no solution sad smiley

Edited 1 time(s). Last edit at 2014-10-05 13:26 by maki.

Options: Reply | Quote | Up ^


#48 Re: Multi-Search

Posted by: pspad | Date: 2014-10-05 13:40 | IP: IP Logged

You are using wrong way to process your data. You should use database. It will allows you to work without limits.

Example for simple database with 2 tables
Table1 with structure FileName varchar(255)
Table2 with structure ListItem varchar(255)
import file with your filenames into Table1 and list of strings you want to search for into Table2

in both tables you can have (from your point of view) unlimited number of rows

To get result for rows from Table1 containing strings from Table2 use query:

Quote:
select Table1.*
from Table1, Table2
where Table1.FileName like '%' + Table2.ListItem + '%'

Options: Reply | Quote | Up ^


#49 Re: Multi-Search

Posted by: pspad | Date: 2014-10-05 13:47 | IP: IP Logged

Of course it is possible with "editor" like tool. Imagine you have 400 000 file names and 5 000 strings you want to look for. Editor needs to make 400 000 x 5 000 string compares to show you result = 2 000 000 000 text compares! It isn't possible be done in one or two seconds.

Options: Reply | Quote | Up ^


#50 Re: Multi-Search

Posted by: maki | Date: 2014-10-05 13:56 | IP: IP Logged

pspad:
It isn't possible be done in one or two seconds.

Ok, understand, but This may be done in 24 hours (one day progress)?
For me, there really is no matter how many time.
For me the most important thing is to make it work.

Edited 1 time(s). Last edit at 2014-10-05 13:57 by maki.

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3 4 5 6 Next





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR