Can't make global regular substitution work #1747
Replies: 2 comments
-
It's not recognising I'm not 100% sure what your expression does - it seems like it makes keys lower case? In which case you could do:
There is a regex |
Beta Was this translation helpful? Give feedback.
-
It was intended to convert all capital letters to lower case and add space before each of them. |
Beta Was this translation helpful? Give feedback.
-
My code is (Nushell):
But it doesn't work:
Error: 1:41: invalid input text "gsub(\"(?<x>[A-Z]..."
is shown. It's not clear what it means: doesgsub
exist at all (but is undocumented), or there is an error inside regex somewhere? Ifgsub
doesn't exist I suggest improving the error message to state that there is no such function. My goal is to rewrite thisjq
piece of code:Beta Was this translation helpful? Give feedback.
All reactions