My regular expression is this:
((?:[a-z][a-z0-9_]*)).*?(\d+).*?((?:[a-z][a-z0-9_]*)).*?(\d+).*?([a-z])
If I give this as input to MySQL RegExp I get the repetition operator error.I know it occurs because of ?: and I replaced it with ^ and I also replace * ? with [^>]* an my replaced regular expression is this:
'((^[a-z][a-z0-9_]*)).[^>]*.(\\d+).[^>]*.((^[a-z][a-z0-9_]*)).[^>]*.(\\d+).[^>]*.([a-z])'
The above expression executes with no errors but the matching fails and returns wrong results.So I want to convert the first regular expression to a POSIX standard supported by mysql without loosing the constraints.
.*?lazy quantifiers