Re: Need explanation of REGEX code

2021-07-31 Thread Howard
Thanks Jean for the comprehensive explanation. It is very helpful. On Saturday, 31 July 2021 at 1:14:01 pm UTC-4 jj wrote: > Hi Howard, > > Here is a commented version of your regular expression. > > (?x)(?# Allow whitespace and comments. > ) > ( (?

Re: Need explanation of REGEX code

2021-07-31 Thread Howard
Thanks. I just tried it for the first time. It is good to know about. Howard On Saturday, 31 July 2021 at 12:52:48 pm UTC-4 TJ Luoma wrote: > > 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

Re: Need explanation of REGEX code

2021-07-31 Thread jj
Just seen there are some non digits in your input. Then use: (\([^\)]*\)|.) On Saturday, July 31, 2021 at 7:14:01 PM UTC+2 jj wrote: > Hi Howard, > > Here is a commented version of your regular expression. > > (?x)(?# Allow whitespace and comments. > ) > (

Re: Need explanation of REGEX code

2021-07-31 Thread jj
Hi Howard, Here is a commented version of your regular expression. (?x)(?# Allow whitespace and comments. ) ( (?# Opening of capture 1. ) . (?# Any single character.

Re: Need explanation of REGEX code

2021-07-31 Thread TJ Luoma
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 wrote: > Can someone explain how the REGEX code below works? > *(.)(?![^(]*\))* > > I know it looks for digits, including two-digit numbers in parenthes

Need explanation of REGEX code

2021-07-31 Thread Howard
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: 01000 (10)