1 2 3 4 | $_ = 'this is a test string "hello here" and another "hello there" and so on...'; s/\s+(?=(?:[^"]*"[^"]*")*[^"]*$)//g; print $_; |
JF8gPSAndGhpcyBpcyBhIHRlc3Qgc3RyaW5nICJoZWxsbyBoZXJlIiBhbmQgYW5vdGhlciAiaGVsbG8gdGhlcmUiIGFuZCBzbyBvbi4uLic7CnMvXHMrKD89KD86W14iXSoiW14iXSoiKSpbXiJdKiQpLy9nOwpwcmludCAkXzsK
-
upload with new input
-
result: Success time: 0s memory: 4552 kB returned value: 0
thisisateststring"hello here"andanother"hello there"andsoon...


