Click here to Skip to main content
15,890,043 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,

I have a very large solution in Visual Studio with over 13k msgboxes. Some of these will have message boxes (done over the years) that do not have the Title part (see eg 1). We are trying to correct all these (like eg 2) in order to display the same title consistently.

example:
1) msgbox("some text in here")
2) msgbox("some text in here",MsgBoxStyle.Exclamation, SomeGlobalVariable)

The buttons can vary.
I want to find all those msgboxes that have "msgbox(" + any characters apart from comma + ")"


Thank you in advance
Tony

What I have tried:

I have tried using [^,] to exclude commas but to no avail.
Any help would be greatly appreciated.
Posted
Updated 12-Feb-17 6:14am
Comments
Mohibur Rashid 11-Feb-17 22:27pm    
If you have cygwin try grep
TonyBrown123 12-Feb-17 20:46pm    
Perfect!!

Thank you

1 solution

Try this:
msgbox\("[^,]*"\)
 
Share this answer
 
Comments
TonyBrown123 12-Feb-17 20:47pm    
Works well!!

thank you
Peter Leow 12-Feb-17 21:23pm    
You are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900