Hey Howard,

What exactly do you mean by “regmatches”?

Find:

(\d|\[\d+\])

Replace:

\1\n

--
Best Regards,
Chris


> On Jul 27, 2021, at 14:41, Howard <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> I have a string of numbers like this:
> 
> "12[11]4567[10]0"
> 
> The string may be longer or shorter than the one shown above. The numbers 
> within the brackets always contain two digits.
> 
> I need to extract the numbers so they appear like below, each number a 
> separate element. The format does not have to be vertical. I am just 
> presenting it that way for readability. 
> 
> 1
> 2
> 11
> 4
> 5
> 6
> 7
> 10
> 0
> 
> How can I do this using GREP and, if viable, 'regmatches'? 

-- 
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/2E29EDF1-2AC0-469F-82B9-060D634B1CF5%40gmail.com.

Reply via email to