Click here to Skip to main content
16,017,015 members
Home / Discussions / C#
   

C#

 
QuestionConvert double to PointF coord?? Pin
...---...26-Aug-05 13:34
...---...26-Aug-05 13:34 
AnswerRe: Convert double to PointF coord?? Pin
Super Lloyd26-Aug-05 14:00
Super Lloyd26-Aug-05 14:00 
GeneralRe: Convert double to PointF coord?? Pin
...---...26-Aug-05 14:29
...---...26-Aug-05 14:29 
GeneralRe: Convert double to PointF coord?? Pin
Super Lloyd26-Aug-05 14:42
Super Lloyd26-Aug-05 14:42 
GeneralRe: Convert double to PointF coord?? Pin
...---...26-Aug-05 14:58
...---...26-Aug-05 14:58 
GeneralRe: Convert double to PointF coord?? Pin
Daniel Turini26-Aug-05 15:40
Daniel Turini26-Aug-05 15:40 
GeneralRe: Convert double to PointF coord?? Pin
Colin Angus Mackay26-Aug-05 20:03
Colin Angus Mackay26-Aug-05 20:03 
QuestionRegex Pin
surfman1926-Aug-05 13:07
surfman1926-Aug-05 13:07 
<br />
int counter = 0; <br />
ArrayList Numbers = new ArrayList(); <br />
Regex regex = new Regex(@"(.+);(.+);(.+)"); // only for 3 like "Gerald; 0650123456; Mike"  ;-((((<br />
Match matchit = regex.Match("Gerald; 0650123456; Sabine; Spech; 06761233333"); <br />
 <br />
for (int i = 0; i < matchit.Groups.Count; i++) <br />
{ <br />
    Numbers.Add(matchit.Groups[i].Value); <br />
    MessageBox.Show(Numbers[i].ToString().Trim()); <br />
}<br />


hi the regex here don't work...i want to make it, that it works for:
"Gerald; 0650123456; Sabine; Spech; 06761233333"
result:
Numbers[0] = Gerald;
Numbers[1] = 0650123456;
Numbers[2] = Sabine;
Numbers[3] = Spech;
Numbers[4] = 06761233333;

and for:
"Gerald; 0650123456; Mike"
result:
Numbers[0] = Gerald;
Numbers[1] = 0650123456;
Numbers[2] = Mike;

the regex have to be independent from the length of the input string....

cu
AnswerRe: Regex Pin
Uri Lavi26-Aug-05 23:27
Uri Lavi26-Aug-05 23:27 
GeneralRe: Regex Pin
surfman1927-Aug-05 0:04
surfman1927-Aug-05 0:04 
GeneralRe: Regex Pin
Uri Lavi27-Aug-05 1:25
Uri Lavi27-Aug-05 1:25 
GeneralRe: Regex Pin
surfman1927-Aug-05 1:50
surfman1927-Aug-05 1:50 
AnswerRe: Regex Pin
Uri Lavi27-Aug-05 2:39
Uri Lavi27-Aug-05 2:39 
GeneralRe: Regex Pin
surfman1927-Aug-05 9:25
surfman1927-Aug-05 9:25 
GeneralRe: Regex Pin
Uri Lavi27-Aug-05 10:44
Uri Lavi27-Aug-05 10:44 
GeneralRe: Regex Pin
surfman1927-Aug-05 11:14
surfman1927-Aug-05 11:14 
QuestionPretty technical bugger. Pin
ldle26-Aug-05 12:24
ldle26-Aug-05 12:24 
AnswerRe: Pretty technical bugger. Pin
Mike Dimmick26-Aug-05 13:01
Mike Dimmick26-Aug-05 13:01 
GeneralRe: Pretty technical bugger. Pin
Alomgir Miah26-Aug-05 18:16
Alomgir Miah26-Aug-05 18:16 
Questionform close Pin
mpastchenko26-Aug-05 11:34
mpastchenko26-Aug-05 11:34 
QuestionRe: form close Pin
eggie526-Aug-05 12:13
eggie526-Aug-05 12:13 
AnswerRe: form close Pin
mpastchenko26-Aug-05 14:07
mpastchenko26-Aug-05 14:07 
AnswerRe: form close Pin
mpastchenko26-Aug-05 14:22
mpastchenko26-Aug-05 14:22 
GeneralRe: form close Pin
mpastchenko16-Sep-05 12:27
mpastchenko16-Sep-05 12:27 
Questionc# procedure Pin
Jassim Rahma26-Aug-05 10:39
Jassim Rahma26-Aug-05 10:39 

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.