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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -