Hi! On Wed, Nov 30, 2022 at 09:18:15AM -0800, apinski--- via Gcc-patches wrote: > Note in the testsuite I used regex . to match '[' and ']' as > I could not figure out how many '\' I needed.
Don't use double quotes then :-) Inside double quotes all of command substitution, variable substitution, and backslash substitution are performed. In a regexp you typically want none of this. You usually do want the whitespace to be significant, so it is good to quote it in braces though (unless you like quoting all your whitespace). > -char u[1] = { "x", "x" }; /* { dg-error "excess elements in 'char' array > initializer" } */ > +char u[1] = { "x", "x" }; /* { dg-error "excess elements in 'char.1.' > initializer" } */ char u[1] = { "x", "x" }; /* { dg-error {excess elements in 'char[1]' initializer} } */ See <https://www.tcl.tk/man/tcl8.6.13/TclCmd/Tcl.html> for a very short page that has *all* Tcl syntax! Segher