OK, trial an error showed me I have some escaping to do: stw\[^:\n\]\+:\[\t \]\+dirw Paulo Matos > -----Original Message----- > From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On > Behalf Of Paulo Matos > Sent: 03 April 2013 09:58 > To: gcc-help@xxxxxxxxxxx > Subject: Regexp in scan-assembler-not > > Hi, > > Are there any docs available where I can find what type of regexp is scan- > assembler directive expecting? > I have the following working grep regexp: stw[^:]\+:[[:space:]]\+dirw > However the gcc testsuite is not too happy with it. > > Any suggestions not only on how to write this but what is generally accepted? > > Cheers, > > Paulo Matos >