I'm trying to do something like
SELECT * FROM table WHERE column REGEXP (abc)(?=def)
and i got an error
Got error 'repetition-operator operand invalid' from regexp
due to '?' → see # 1139 - Got the error "operand of the repeat operator is invalid" from regexp
Is there an equivalent in mysql that I don't see in https://dev.mysql.com/doc/refman/5.7/en/regexp.html ?
or maybe another mysql function that I don't know yet?
MySQL REGEXPdoes not support prediction, but you can try to achieve the same logic using something like this:
REGEXP
WHERE column LIKE 'abc%' AND SUBSTRING(column, INSTR(column, 'abc') + 3, 3) <> 'def'
Source: https://habr.com/ru/post/1655969/More articles:browser response to dragover - html5 drag and drop - html5Как разделять ячейки, содержащие несколько значений (разделенных запятыми), в отдельные строки? - splitAngular 2 - Named routers without horrible URLs - angularHow to combine vertical cells in tableGrob output tables in R? - rcreating a custom callback validation rule in codeigniter 2.x - phpEditor Custom Features - sitecoreHow to write a selector for an element with a class that has the $ sign - androidUsing ActivatedRoute in another service - angularjsAndroid Marshmallow - вызов библиотечного модуля (родной библиотеки) из другого библиотечного модуля - androidDefine the “Temperature Block” setting of the user on iOS 10 (Celsius / Fahrenheit) - iosAll Articles