[Solved] Qt + ODB --include-regex
-
Hi,
In .pro file I'm try put this expression
@--include-regex $$re_escape(%./include/entity/(.+)-odb.h%$1-odb.h%)@to change the include from ./include/entity/test-odb.h to test-odb.h, but doesn't work, it always changes to -odb.h.
Someone know to help.
Thank you
P.S: Complete line in .pro file
@ODB_FLAGS = --database pgsql --profile qt --generate-schema --generate-query --generate-session --std c++11 --hxx-suffix .h --schema-format embedded --include-prefix ./include/entity/ --include-regex $$re_escape(%./include/entity/(.+)-odb.h%$1-odb.h%)@ -
Hi and welcome to devnet,
Shouldn't your regex rather be:
@%./include/entity/(.+)-odb.h%\1-odb.h%@
?
-
[quote author="SGaist" date="1423093764"]Hi and welcome to devnet,
Shouldn't your regex rather be:
@%./include/entity/(.+)-odb.h%\1-odb.h%@
?[/quote]
Hi SGaist thank you...
I changed the regex following your example and now it's working.
About the regex the error was in $, was only change that $ to this .
Now my problem was solved I go to read a bit about perl regex.Thank you again.