Regex Matches any new line within a comment -
is there way search \n
within comment ""
in notepad++ , replace there no spaces within comments?
for example:
this example "hello, separated. [together]" finish
i can change first "
<
, second "
>
within <>
or ""
should not space:
i have following result:
this example "hello, separated. [together]" finish
thanks,
here way job:
- find what:
[^"]*(?:\g|")\k([^"\r\n]+)\r+
- replace with:
$1
where:
(?:\g|")
: end of previous successful match or double quote\k
: reset operator discards previous match[^"\r\n]+
: 1 or more character not"
,\r
or\n
\r+
: 1 or more line break
Comments
Post a Comment