Select "Process Lines Containing" from the Text menu. Use an expression like 
"ID_User" and the "Copy to new document" option. This will create a new 
document that contains only lines that you want to process.

Then a simple replace all should do the actual work.

Find: .*ID_User=(.+?)&.*\r
Replace: \1\r

Hope this helps,

[fletcher]


> On Jan 26, 2018, at 6:56 PM, Doug Lerner <[email protected]> wrote:
> 
> Hi. I am using BBEdit 11.6.8 and have a file with thousands of lines, where 
> most lines contain an expression that looks like this:
> 
> ID_User=.5a82483a&-find
> 
> There's other stuff on the line too.
> 
> What I would like to do is find everything between the ID_User_ and *-find 
> (e.g. .5a82483a in this example) and be left with a file where each line 
> contains just that userId. After that I can sort it, remove duplicates, etc.
> 
> Is there a sequence of things I can do, using grep search patterns, and so 
> on, to create a file from this file containing just the userIds?
> 
> Thanks,
> 
> doug
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to