Click here to Skip to main content
15,914,924 members
Home / Discussions / C#
   

C#

 
QuestionDataGridView and List Pin
sangramkp26-Jul-07 0:40
sangramkp26-Jul-07 0:40 
AnswerRe: DataGridView and List Pin
kubben26-Jul-07 1:39
kubben26-Jul-07 1:39 
QuestiontableAdapters and transactions Pin
JoZ CaVaLLo26-Jul-07 0:11
JoZ CaVaLLo26-Jul-07 0:11 
QuestionWindows application developped using C#.Net with .Net 2005 Pin
indian14326-Jul-07 0:09
indian14326-Jul-07 0:09 
QuestionDouble characters in regexp Pin
Markus Pylvnen26-Jul-07 0:08
Markus Pylvnen26-Jul-07 0:08 
AnswerRe: Double characters in regexp Pin
Tormod Fjeldskaar26-Jul-07 3:06
Tormod Fjeldskaar26-Jul-07 3:06 
GeneralRe: Double characters in regexp Pin
Markus Pylvnen26-Jul-07 19:18
Markus Pylvnen26-Jul-07 19:18 
AnswerRe: Double characters in regexp Pin
snorkie26-Jul-07 3:11
professionalsnorkie26-Jul-07 3:11 
Try the following. I put your two expressions into my Regex editor (http://www.radsoftware.com.au/regexdesigner/) and started playing around till I found the following to work.

\s*{\s*__(?<name>[^ ]+)__(\s*(?<parameters>#[^}]*)})?

It works because the second part of the expression (\s*(?<parameters>#[^}]*)})? is now in an un-named optional group. Your first example, // {__NAME1__} didn't match the second part of your expression, so it failed. The other two examples matched, so they came back. This will result in an extra group being returned, but you can ignore it when you go through your matches by using the group names.

Hope this helps.

Hogan
QuestionSaving data to Disk ... Pin
Jalpesh B. Patel26-Jul-07 0:07
Jalpesh B. Patel26-Jul-07 0:07 
AnswerRe: Saving data to Disk ... Pin
Pete O'Hanlon26-Jul-07 0:31
mvePete O'Hanlon26-Jul-07 0:31 
QuestionSynchronizing Data between SQL Express editions running on a network Pin
wasife25-Jul-07 23:43
wasife25-Jul-07 23:43 
QuestionSqlCommand timeout Pin
Stoyan Furnadzhiev25-Jul-07 23:36
Stoyan Furnadzhiev25-Jul-07 23:36 
AnswerRe: SqlCommand timeout Pin
Blue_Boy25-Jul-07 23:46
Blue_Boy25-Jul-07 23:46 
AnswerRe: SqlCommand timeout Pin
kubben26-Jul-07 1:43
kubben26-Jul-07 1:43 
GeneralRe: SqlCommand timeout Pin
Stoyan Furnadzhiev26-Jul-07 2:12
Stoyan Furnadzhiev26-Jul-07 2:12 
QuestionExpiring app Pin
sujithkumarsl25-Jul-07 23:29
sujithkumarsl25-Jul-07 23:29 
AnswerRe: Expiring app Pin
N a v a n e e t h26-Jul-07 0:11
N a v a n e e t h26-Jul-07 0:11 
AnswerRe: Expiring app Pin
Tormod Fjeldskaar26-Jul-07 3:25
Tormod Fjeldskaar26-Jul-07 3:25 
Question.net 1.0 configuration for VS 2005 Pin
mercenary0125-Jul-07 23:20
mercenary0125-Jul-07 23:20 
AnswerRe: .net 1.0 configuration for VS 2005 Pin
Pete O'Hanlon26-Jul-07 0:28
mvePete O'Hanlon26-Jul-07 0:28 
GeneralRe: .net 1.0 configuration for VS 2005 Pin
mercenary0126-Jul-07 16:54
mercenary0126-Jul-07 16:54 
QuestionCreating collection classes and adding to property of control Pin
N a v a n e e t h25-Jul-07 22:57
N a v a n e e t h25-Jul-07 22:57 
AnswerRe: Creating collection classes and adding to property of control Pin
Urs Enzler25-Jul-07 23:10
Urs Enzler25-Jul-07 23:10 
GeneralRe: Creating collection classes and adding to property of control Pin
N a v a n e e t h25-Jul-07 23:26
N a v a n e e t h25-Jul-07 23:26 
QuestionHow can i solve this format exception Pin
xver25-Jul-07 22:52
xver25-Jul-07 22:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.