Talk:Regular Expressions

From EditPlus Wiki
Jump to: navigation, search

How to find a C comment /*....*/ which is spanning several lines?

--

/\*((.|\n)*)\*/

-- I will update the article... (same for HTML comments)

-- Though the above regex will find comments spanning several lines it will not find individual blocks of comments, rather starting from the first "/*" in the file to the last "*/" it will highligh everything in between.

--