hssqlppp icon indicating copy to clipboard operation
hssqlppp copied to clipboard

Regexp syntax support

Open ka3a4ok opened this issue 10 years ago • 3 comments

Is it possible to add parsing of regexp in SQL-query? For example: ... CASE WHEN layer~E'^-?\\d+$' ...

ka3a4ok avatar Apr 09 '15 16:04 ka3a4ok

You just need to add '~' to the operator table in the parser. Do you want to try it yourself?

JakeWheat avatar Apr 09 '15 17:04 JakeWheat

And what about E prefix before string? Does the parser process it?

ka3a4ok avatar Apr 09 '15 20:04 ka3a4ok

Can you try it and see? If it is difficult to do this then I want to try to make it easier, if you can help me.

JakeWheat avatar Apr 10 '15 07:04 JakeWheat