Regular Expression
-
Hi everyone! Please tell me what below statement mean
Regex regex = new Regex(@"[:_.\w]+\s*=\s*(""[^""]*"")|('[^']*')\s*");
ThanksIt's a regular expression that matches a string of the form SomeKey = "Some Value" or SomeKey = 'Some Value'. SomeKey can be a string consisting of :, _, . and any alphanumeric character, while Some Value can be a string consisting of anything except the speech marks that contain it. There can also be any amount (or none) of whitespace around the = sign. Hope that helps. -- modified at 12:46 Sunday 21st January, 2007
-
Hi everyone! Please tell me what below statement mean
Regex regex = new Regex(@"[:_.\w]+\s*=\s*(""[^""]*"")|('[^']*')\s*");
Thanks -
It's a regular expression that matches a string of the form SomeKey = "Some Value" or SomeKey = 'Some Value'. SomeKey can be a string consisting of :, _, . and any alphanumeric character, while Some Value can be a string consisting of anything except the speech marks that contain it. There can also be any amount (or none) of whitespace around the = sign. Hope that helps. -- modified at 12:46 Sunday 21st January, 2007