Regex that works in VS2010 does not work in fnr.exe

Jan 6, 2015 at 3:33 AM
Edited Jan 6, 2015 at 3:35 AM
Hi All

I'm in the process of cleaning up some code after converting C comments to C++ comments.

One example I'm trying to handle has the form: "// <other chars> " where the user has decorated a comment with a box of '*'.

In VS2010 I can use the regex "//*{ .*}*$" and it will find the exact lines I need.

However fnr seems to stumble over the '$' which ensures that matches must end in '*'. And if I remove the '$' fnr matches comments with '*' somewhere inside the comment which is not what I want.