Quantcast
Channel: CodeProject Latest postings for Regular Expressions
Viewing all articles
Browse latest Browse all 224

How to remove an & in the following expressions

$
0
0
Hello everyone!
since more than two decades programming with VC++ I never used Regular Expressions.
But now I need... The solution in VS2022 contains some thousands line looking like:
some_object.MyMethod(comma_separated_parameter_list, &SomeClass(argument)optiolal_parameter-list)

What I need is removing the ampersand (&) from these code expressions.
I found a way to search for such an expression. It is something like something like
C++
.*MyMethod\(.*, &SomeClass\(


But I could not find a working expression for Replace.

So I need your help guys!

Viewing all articles
Browse latest Browse all 224

Trending Articles