carbon-relay-ng icon indicating copy to clipboard operation
carbon-relay-ng copied to clipboard

Question for regex with non-latin characters

Open frankegoesdown opened this issue 6 years ago • 0 comments

Hello I need help

I am parsing words from some sentences and my \w+ regexp works fine with Latin characters. However, it totally fails with some Cyrillic characters.

for example In this case regex didn't mach Cyrillic characters.

[[aggregation]]
function = 'percentiles'
regex = '^((([a-zA-Z0-9а-яА-Я_-]*)(\.)?)+)+(time)'
format = '$1.time'
interval = 1
wait = 2

I was trying with unicode codes

'^((([\w\u0430-\u044f]*)(\.)?)+)+(time)'

But it get's [ERROR] error parsing regexp: invalid escape sequence: `\u`

frankegoesdown avatar Jan 29 '19 17:01 frankegoesdown