WH_Tech
asked on
Regex Pattern Question
Is it possible to create a Regex pattern that match under the following situation?
String to Search = T.TestString
Possible Matching Search Input Strings = T.TestString, TestString
However I only want the T.TestString to match so I can replace the string. Otherwise the replacement would be incorrect.
String to Search = T.TestString
Possible Matching Search Input Strings = T.TestString, TestString
However I only want the T.TestString to match so I can replace the string. Otherwise the replacement would be incorrect.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Are you performing the replacement in C#, or in Visual Studio (or another IDE or text editor)? If Visual Studio, what version are you using?
ASKER
VS 2013 (C#)
Then what was proposed above should be fine. Earlier versions of VS had their own unique regex syntax for Find/Replace. VS 2012 and VS 2013 both use PCRE.