I have asked a question insert a string to a list variables in text file [use sed]
In which @RomanPerekhrest showed me a different regex syntax.
\(=([^)]*\))
can capture [^)]*
as group 1 . This is confusting for me .
You can check the result on https://regex101.com/r/DRChkE/2
https://regex101.com/r/LItVNg/1
This \(([^\)]*)\)
is the correct one in my mind, but it is broken in sed.
So I wonder how to make sed use the regex syntax standard as python or javascript (common standard in many languages).