My program get configuration from comandline. the comandline is like this: "mapPath=Some_Path_Over_Here\npluginsPath=Other_Path_Over_Here\n" please notice the "\n" in the middle and in the end.
my cose is:
QString config("mapPath=Some_Path_Over_Here\npluginsPath=Other_Path_Over_Here\n")
QRegExp reg("mapPath=(.*)\\npluginsDir=(.*)\\n");
but when I write
reg.indexIn(config)
the result is -1.
It is important to say that I my program is both for linux and windows. I think what is causing the problem is the "\n".. I dont know how to handle it. help please?