I am trying to create a regular expression to match every ( and ) in a string, but exclude \( and \). This is so that I can replace every parentheses but keep the ones with the slash in front of them.
Example String: (,)(5)(5)( )(\()(9)(1)(87x)(100 )(ASP\)( )(5)
Edit: Desired Result after replace: ,55 \(9187x100 ASP\) 5 Then i can remove the \ and get my desired string ,55 (9187x100 ASP) 5
Edit: I am using VB.NET