Re: Help with a grep question

2018-02-04 Thread Christopher Stone
On 01/26/2018, at 20:56, Doug Lerner mailto:d...@lerner.net>> wrote: > 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, e

Re: Help with a grep question

2018-01-28 Thread Dave
Enter one of these patterns in a Find dialog: (?<=ID_User=)\.[[:xdigit:]]+(?=&-find) or (?<=ID_User=)\.[[:alnum:]]+(?=&-find) (Which pattern depends on whether the ID is a hexadecimal number or simply a sequence of alphanumeric characters.) Click Extract. A new document containing the IDs will be

Re: Help with a grep question

2018-01-27 Thread Fletcher Sandbeck
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 Replac

Help with a grep question

2018-01-27 Thread Doug Lerner
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 exa