Regex is still a pain for me, I need to match any ...
# random
e
Regex is still a pain for me, I need to match any whitespace outside double quotas, how can I match the first two here?
t
I don't think that's something regex can really do on its own. I guess you will probably need to somehow separate the quoted oarts of your string from the rest first and then do your search for whitespaces only where you want to find them.
m
How about this? Does it cover your use case?
e
Hey Matteo, I solved this way
m
hi, so your requirement was to match all whitespace except double quotes? Initially I understood you wanted all the ws surrounding a quoted block
e
sorry, my bad
m
Ohh I get it now… all whitespace except those inside double quotes, got it! Don’t worry