carbon-relay-ng
carbon-relay-ng copied to clipboard
Question for regex with non-latin characters
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`