On 2021-06-02, at 11:59, Howard <[email protected]> wrote:
> 
> Thanks everyone for the responses. 
> 
> To help me to understand better the Grep part of Neil's solution, can someone 
> provide me with the search pattern and the replace pattern to just find those 
> lines with numbers in parentheses and extract them without any line numbers? 
> I'd like to put that into the Pattern Playground and work with that a bit.

Here’s the first one broken into components:

[0-9]   Search for a digit 0–9
*       Preceding search 0 or many times
(       Start a capture buffer
\(      Look for a literal left bracket (‘escape’ it)
[0-9]
+       Preceding search 1 or many times
\)      Look for a literal right bracket
)       End capture buffer
[0-9]
*

Note some of samples also used \d to search for digits.  Technically this can 
find them in other languages too.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/68E1AA75-C2DD-4D8F-B27F-7610851AA437%40gmail.com.

Reply via email to