Hi Howard,
You can use this regex in the Find field:
\d*(?:\((\d+)\))?\d*(?:\((\d+)\))?\d*(?:\((\d+)\))?\d*(?:\((\d+)\))?\d*(?:\((\d+)\))?\d*
with this in the Replace field:
\1 \2 \3 \4 \5
It can find from 1 to 5 parentheses. Repeat the (?:\((\d+)\))?\d* pattern and the corresponding captures if you need more.
Here is a 2 parentheses case commented:
(?x) (?# allow whitespace and comments)
\d* (?# zero or more leading digits)
(?: (?# non capturing parenthesis)
\( (?# literal open parenthesis)
( (?# capturing open parenthesis - capture \1)
\d+ (?# one or more digits)
) (?# capturing close parenthesis)
\) (?# literal close parenthesis)
)? (?# zero or one occurrence)
\d* (?# zero or more middle digits)
(?: (?# non capturing parenthesis)
\( (?# literal open parenthesis)
( (?# capturing open parenthesis - capture \2)
\d+ (?# one or more digits)
) (?# capturing close parenthesis)
\) (?# literal close parenthesis)
)? (?# zero or one occurrence)
\d* (?# zero or more trailing digits)
You can copy this commented pattern and paste it "as is" in the Find dialog by right-clicking inside the "Find" field with the <Option-key> pressed and choosing the "Paste and Select" menu item.
Regards,
Jean Jourdain