Hello, @uhax-the-grey, @coises and All,
Your solution, @coises, seems to work only if :
A single "......" section exists in current line
Line-ending char(s) end(s) the current line
@uhax-the-grey, the difficulty to achive that general goal is that the ending char of a section is the SAME char than its beginning char ( the " character ) :-((
So I propose to split the problem in 3 successive steps :
First, we change any couple of " chars, of a single section, with two different control chars ( \x02 and \x03 )
Secondly, we use the generic regex mechanism, described here, to replace any \t character by a space char, in "............" sections only
Finally, we restore the two original " delimiters for each section
This method leads to the 3 successive regex S/R below :
SEARCH (?s)"(.*?)"
REPLACE \x02\1\x03
Then :
SEARCH (?:\x02|(?!\A)\G)(?s:(?!\x03).)*?\K\t
REPLACE \x20
Remark : Do not forget to move the caret ( cursor ) at the very beginning of the current file, before running this second S/R !
Finally :
SEARCH [\x02\x03]
REPLACE "
Whatever the position of the TAB chars and the " deleimiters, thoughout the text contents, this method should always work properly !
Best Regards,
guy038