You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use double backslash and using parentheses instead of braces but nothing works, I get the same error of invalid escape character all the time..
Please help :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
I'm trying to run the replace function within a remap transform, here's my config:
I've read that it is possible to run the function with regex according to the docs here: https://vector.dev/docs/reference/vrl/functions/#replace
But still I get this error:
22 │ │ .message = replace(.message, r'\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{1,}Z)', "")
23 │ │ }
│ ╰─^ unexpected error: invalid escape character: \d
Any idea what's wrong here?
I tried to use double backslash and using parentheses instead of braces but nothing works, I get the same error of invalid escape character all the time..
Please help :)
Beta Was this translation helpful? Give feedback.
All reactions