Comment Comment by c0nstantine Hi,If I understand it correctly you want to change something inside the "..." block and change the quotas to single '.It can be done by this expression:echo '"hello world" "hello again!"' | ./trre "\":'.+?:-\":'"'-' '-'So I substitute the text inside "" by symbol - using this expression ".+?:-" and simultaneously changing the surrounding quota.Question mark means non-greedy mode. parent c0nstantine 1 year ago
If I understand it correctly you want to change something inside the "..." block and change the quotas to single '.
It can be done by this expression:
echo '"hello world" "hello again!"' | ./trre "\":'.+?:-\":'"
'-' '-'
So I substitute the text inside "" by symbol - using this expression ".+?:-" and simultaneously changing the surrounding quota.
Question mark means non-greedy mode.