What I am looking to do:
- Find all files that are of the type autogen_X.c, autogen_X.h or Project name.c (in the src folder on the root level)
- Print them out
The QRegExp I have is: \nsrc[^\n]*
The text that I have is:
####################################################################
# Files #
####################################################################
C_SRC += \
src/autogen_init.c \
src/autogen_init.h \
src/Project name.c \
lib/src/acmp.c \
lib/src/adc.c \
lib/src/aes.c \`
s_SRC += \
Device/Source/G++/startup_32.s
S_SRC +=
The code I have
QRegExp linkRx = QRegExp("src/[^\\n]*");
linkRx.indexIn(content);
foreach (QString match, linkRx.capturedTexts())
{
qDebug() << match;
}
The output I am getting
"src/autogen_init.c \"
Should this not match all files that start with just src/
?