Hi All,

In a pro file:
############
VERSION = 1.8.0

# This should be extracted from VERSION (but how?)
VERSION_MAJ = $$find(VERSION, regular expression?)
message($$VERSION_MAJ)
###########

Require VERSION_MAJ to be 1 via the $$find function.

What is the form of the regular expression to achieve required result?

Thanks

Vanir