问题
Hello all :) I'm having trouble with Firebird's SIMILAR TO
, which is supposed to provide regex-like behavior.
'aaaaa' SIMILAR TO 'a{2,}' -- true
'aaaaa' SIMILAR TO '(_)\1+' -- false
The \1
does not seem to be interpreted by Firebird. \
is not even a special character.
How can I match on character repetition? (or use a back-reference?)
来源:https://stackoverflow.com/questions/21432507/repetitions-with-regexes-in-firebird