Try pasting it into https://regexr.com
That's what I usually use to translate regex into English :-) On Sat, Jul 31, 2021 at 10:20 AM Howard <leadwithlo...@gmail.com> wrote: > Can someone explain how the REGEX code below works? > *(.)(?![^(]*\))* > > I know it looks for digits, including two-digit numbers in parentheses, > and extracts them and inserts a space after each one, but I do not know how > the code starting with *(?* works. > > Here is sample data for it: > 010000000 > (10)1140006x > 002200010 > 00000(11)01x > 311200 > > Here is output: > 0 1 0 0 0 0 0 0 0 > (10) 1 1 4 0 0 0 6 x > 0 0 2 2 0 0 0 1 0 > 0 0 0 0 0 (11) 0 1 x > 3 1 1 2 0 0 > > > -- > This is the BBEdit Talk public discussion group. If you have a feature > request or need technical support, please email "supp...@barebones.com" > 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 bbedit+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/aa2c7738-44c7-4d75-b64e-7cf2655ffb4an%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/aa2c7738-44c7-4d75-b64e-7cf2655ffb4an%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "supp...@barebones.com" 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 bbedit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CADjGqHugPevNf7274j-ETDHHMUSgwaYCmGgHgT%2BWnFG526mgrg%40mail.gmail.com.