Repetitions with regexes in Firebird

跟風遠走 提交于 2019-12-11 10:06:03

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!