I\'ve got hundreds of files of the type linked here: http://pastebin.com/fGgLfZf8
But I want to remove all the comments that occupies more than one line eg.
Another way to catch multi-line text is use the expression:
\S+ matches all no-space symbols,
\s+ matches all space symbols (including \r \n \t).
It works for notepad++, maybe, otherwise too...
EDIT: At the first look I didn’t noticed that problem issue is catch and delete only multiline comments excluding monoline ones. I found method of two iterations. First we need to find and replace by nothing following text
)[\s\S]+?—->|)
That will catch all multiline comments and prefixes of monoline ones. Then we need is bring back the monoline prefixes, that we lost:
Find:
(.+—->)
Replace:
It will fix monoline comments. Combination of “—->“ can not appear xml code otherwise end of comment.