attn: regex gurus. can this be done with a regular expression or using a different technique?



Hello:

A third party component (NUnit) being used by my c# code has undergone a
breaking change and, as a result, thousands of methods calls in my source
code need to be revised in the following way:

// General example of the desired revision
RevisedMethod(stringA, stringB) // prior to change
RevisedMethod(stringB, stringA) // after change

Basically, I need to switch *whatever* appears before the comma with
*whatever* appears after the comma. This change needs to take place in
literally thousands of places, and I was wondering if it is possible to
somehow accomplish the switch using the Visual Studio regex search and
replace feature. If so, what would the expression look like?

If this code revision is not possible with a regular expression, is there
perhaps a different developer tool that might accomplish the task? The
thought of manually completing this change is making my head spin!

Thanks!
Chris




.



Relevant Pages

  • Re: EXTREMELY URGENT REQUEST... Re: Grouping
    ... A more robust solution would not use a long Switch() function. ... >regional settings in Windows. ... > I switched it back to a comma, ... >>> Joe ...
    (microsoft.public.access.reports)
  • Re: Excel Spreadsheet Manipulation
    ... slow on the switch, but the switch does eventually get pulled. ... check Unique Records only (and I prefer to select a different location ... How do I eliminate the comma and everything to the right of the comma for ... And eliminate duplicate addresses and first name leaving only one last name ...
    (microsoft.public.excel.misc)
  • Re: Regular Expression Help
    ... | I need to find all occurrences of a comma in a string EXCEPT where it ... | I figured a regular expression would be the way to go, ... | Kind of like the wizard that helps you build a connection string? ... | of various RegEx test programs, but I would like one to help me construct ...
    (microsoft.public.dotnet.languages.vb)
  • Re: RegularExpression Validation for password in ASP.NET
    ... Can any one help me to write a regular expression to validate the password ... 3- Password must begin with an alphabetic character. ... single quote, double quotes, comma). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Regular Expression
    ... On Tue, 2 Jan 2007, zowtar wrote: ... You seem to be using a comma for alternation--that is to specify one of ... HOWEVER, you specify ... If I were writing a regular expression to pluck out the URLs in your ...
    (comp.lang.tcl)