| Subject: VS regex dialect problems |
| Group: microsoft.public.vstudio.general |
| Date: 5/1/2008 1:31:01 PM |
| From: =?Utf-8?B?TWFyaw==?= [Email Address Protection] |
Hi... I'm trying to craft a regex to find calls with a parameter of a 1-character string in C#. I'm getting close, but it's doing something I don't quite get... Here's the pattern I'm trying: \(:b*"([^\\]|\\.)":b*\)[\.;:b] In english, I expect this to be "opens with a paren, optional white space, quote followed by either backslash-anychar or anychar but backslash, followed by close quote, optional whitespace, close paren and either a period semicolon or more whitespace". The weird behavior is that it also matches 2-character strings and I can't see how it would correctly interpret that. E.g. it matches (");") or (" ,") or (" (") I don't see how it's interpreting the expression for the 2-char matches. Any ideas? Thanks Mark |
| Back |