extract function invalid
chengguotao opened this issue · comments
chengguotao commented
extract('2022-02-01','(d{4})-(d{2})-(d{2})')
extract('foo.bar', '(w+).(w+)')
The extract function do not seem to work, returning "sptrs":[]
stefan-gorules commented
Hi @chengguotao, you need to use backslashes \
. Here's the fixed version:
chengguotao commented
aaa.bbb.ccc.ddd
How to split by '.', get all letters, (\w+).(\w+) This way can only get the first '.' match