rwsansom: -------------------------------------------------------------------------------- Hello,
Hope this is clear ... (I'm a PSPAD newbie). I have a list of 250 partnumbers in a .txt file (A) which I have to try and find in a big flat .txt file (B) and create a new .txt file C with all the lines of file (B) containing one of the partnumbers of file (A). Off course I can do a copy-paste operation for my 250 partnumbers and apply the find function. Any volunteers ? :-)) Haven't found a similar question on the forum, anybody got an idea ? Is this possible in PsPAD ? Thank you, -------------------------------------------------------------------------------- Hi, you may try regular expressions, e.g. the following cite: -------------------------------------------------------------------------------- ^.*(abc001xyz|abc002xyz|abc003xyz|abc004xyz).*$-------------------------------------------------------------------------------- to search for the lines containing one of the substrings given in parentheses separated with a pipe, I don't know, how exactly the actual partnumbers look like and whether there is a possibility to confuse them with other part of the line, you can use e.g.: cite: -------------------------------------------------------------------------------- ^.*\b(abc001xyz|abc002xyz|abc003xyz|abc004xyz)\b.*$-------------------------------------------------------------------------------- enforcing the word boundary before and after the number. If it would work for you, you can just join the list of the numbers to one line separated with | , put it in a single expression and run the copy command using the [x] regular expression search. hth vbr -- <http://forum.pspad.com/read.php?2,49959,49961> PSPad freeware editor http://www.pspad.com
