Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
QuestionDrag and drop datacell within the GridView Pin
Mukund Thakkar27-Aug-08 2:52
Mukund Thakkar27-Aug-08 2:52 
AnswerRe: Drag and drop datacell within the GridView Pin
Ashfield27-Aug-08 3:13
Ashfield27-Aug-08 3:13 
QuestionCreating Instance of button at run time. Pin
Member 395385627-Aug-08 2:48
Member 395385627-Aug-08 2:48 
AnswerRe: Creating Instance of button at run time. Pin
User 665827-Aug-08 2:50
User 665827-Aug-08 2:50 
GeneralRe: Creating Instance of button at run time. Pin
Member 395385627-Aug-08 2:54
Member 395385627-Aug-08 2:54 
GeneralRe: Creating Instance of button at run time. Pin
lisan_al_ghaib27-Aug-08 3:45
lisan_al_ghaib27-Aug-08 3:45 
GeneralRe: Creating Instance of button at run time. Pin
Member 395385627-Aug-08 4:29
Member 395385627-Aug-08 4:29 
QuestionRegexp question Pin
Kjetil Svendsen27-Aug-08 2:43
Kjetil Svendsen27-Aug-08 2:43 
Hi.

I have a text input like this:

a: a-related text
b: b-related text
c: c-related text
d: d-related text
e: e-related text
f: f-related text

and a expression like this:

(a\:\s*)(?<a>.*)(\r\n)(b\:\s*)(?.*)(\r\n)(c\:\s*)(?<c>.*)(\r\n)(d\:\s*)(?<d>.*)(\r\n)(e\:\s*)(?<e>.*)(\r\n)(f\:\s*)(?<f>.*)(\r\n)
</f></e></d></c></a>

So far so good.

The problem is that I never know how many of the lines a-f which is present.

The text might look like this:

a: a-related text
c: c-related text
f: f-related text

or:

a: a-related text
b: b-related text
some strange text
f: f-related text


Any suggestion on how to write my expression?

Kjetil
AnswerRe: Regexp question Pin
leppie27-Aug-08 4:07
leppie27-Aug-08 4:07 
AnswerRe: Regexp question Pin
Guffa27-Aug-08 9:25
Guffa27-Aug-08 9:25 
QuestionRe: Regexp question Pin
Kjetil Svendsen27-Aug-08 10:24
Kjetil Svendsen27-Aug-08 10:24 
AnswerRe: Regexp question Pin
Guffa27-Aug-08 10:47
Guffa27-Aug-08 10:47 
GeneralRe: Regexp question Pin
Kjetil Svendsen27-Aug-08 11:46
Kjetil Svendsen27-Aug-08 11:46 
AnswerRe: Regexp question Pin
Guffa27-Aug-08 15:06
Guffa27-Aug-08 15:06 
GeneralRe: Regexp question Pin
Kjetil Svendsen27-Aug-08 20:57
Kjetil Svendsen27-Aug-08 20:57 
AnswerRe: Regexp question Pin
Guffa28-Aug-08 11:14
Guffa28-Aug-08 11:14 
QuestionHow to Open a Visual Studio 2008 Project with Express Edition Pin
Babubhai0727-Aug-08 1:53
Babubhai0727-Aug-08 1:53 
AnswerRe: How to Open a Visual Studio 2008 Project with Express Edition Pin
leppie27-Aug-08 2:26
leppie27-Aug-08 2:26 
GeneralRe: How to Open a Visual Studio 2008 Project with Express Edition Pin
Babubhai0727-Aug-08 5:41
Babubhai0727-Aug-08 5:41 
GeneralRe: How to Open a Visual Studio 2008 Project with Express Edition Pin
Thomas Stockwell27-Aug-08 6:07
professionalThomas Stockwell27-Aug-08 6:07 
QuestionHow can we generate a tiny preview image from a website ? Pin
Mohammad Dayyan27-Aug-08 1:41
Mohammad Dayyan27-Aug-08 1:41 
AnswerRe: How can we generate a tiny preview image from a website ? Pin
blackjack215027-Aug-08 2:18
blackjack215027-Aug-08 2:18 
GeneralRe: How can we generate a tiny preview image from a website ? Pin
Mohammad Dayyan27-Aug-08 2:24
Mohammad Dayyan27-Aug-08 2:24 
AnswerRe: How can we generate a tiny preview image from a website ? Pin
chaiguy133727-Aug-08 4:24
chaiguy133727-Aug-08 4:24 
Questionhow to change the value in Datetimepicker [Please help me its urgent] Pin
vinay_K27-Aug-08 1:33
vinay_K27-Aug-08 1:33 

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.