Click here to Skip to main content
15,890,947 members
Home / Discussions / C#
   

C#

 
GeneralRe: show array elements Pin
ahmad al-omar14-Apr-07 9:13
ahmad al-omar14-Apr-07 9:13 
GeneralRe: show array elements Pin
Colin Angus Mackay14-Apr-07 10:33
Colin Angus Mackay14-Apr-07 10:33 
AnswerRe: show array elements Pin
ahmad al-omar14-Apr-07 9:11
ahmad al-omar14-Apr-07 9:11 
AnswerRe: show array elements Pin
Luc Pattyn14-Apr-07 12:53
sitebuilderLuc Pattyn14-Apr-07 12:53 
AnswerRe: show array elements Pin
Jaiprakash M Bankolli14-Apr-07 20:01
Jaiprakash M Bankolli14-Apr-07 20:01 
QuestionRegex problem Pin
hamidkhan14-Apr-07 6:13
hamidkhan14-Apr-07 6:13 
AnswerRe: Regex problem Pin
Guffa14-Apr-07 6:46
Guffa14-Apr-07 6:46 
QuestionRe: Regex problem Pin
hamidkhan14-Apr-07 7:39
hamidkhan14-Apr-07 7:39 
string temp = "http://www.com:8080/";
string pattern = @"^(?<protocol>\w+)://[^/]+?(?<port>:\d+)?/";
Well as you said, the part [^/]+ could be greedy and consume "www.com:8080" but in the next part we have a colon that forces us to match it with the : in the string. So I think neither of question marks in [^/]+? and (?<port>:\d+)? did their missions! I mean in this case, the pattern had to split the rest of the string to two exact parts. No other permutations could be thought of. The spiltted parts are "www.com" and ":8080/". So in fact, the pattern @"^(?<protocol>\w+)://[^/]+(?<port>:\d+)/" would have a same result for the temp string, right?
AnswerRe: Regex problem Pin
Guffa14-Apr-07 11:40
Guffa14-Apr-07 11:40 
GeneralRe: Regex problem Pin
hamidkhan15-Apr-07 2:50
hamidkhan15-Apr-07 2:50 
AnswerRe: Regex problem Pin
Guffa15-Apr-07 3:06
Guffa15-Apr-07 3:06 
QuestionRe: Regex problem [modified] Pin
hamidkhan15-Apr-07 3:49
hamidkhan15-Apr-07 3:49 
QuestionSetting default icons on explorer panel? Pin
cyberf14-Apr-07 5:04
cyberf14-Apr-07 5:04 
AnswerRe: Setting default icons on explorer panel? Pin
Judah Gabriel Himango17-Apr-07 3:43
sponsorJudah Gabriel Himango17-Apr-07 3:43 
QuestionThe same words in dictionary + Serilization Pin
Saikek14-Apr-07 4:24
Saikek14-Apr-07 4:24 
AnswerRe: The same words in dictionary + Serilization Pin
George L. Jackson14-Apr-07 8:49
George L. Jackson14-Apr-07 8:49 
GeneralRe: The same words in dictionary + Serilization Pin
Saikek15-Apr-07 4:08
Saikek15-Apr-07 4:08 
QuestionPrinting - Changing a font within a line. Pin
MarkSchultz14-Apr-07 3:36
MarkSchultz14-Apr-07 3:36 
AnswerRe: Printing - Changing a font within a line. Pin
Dave Kreskowiak14-Apr-07 6:36
mveDave Kreskowiak14-Apr-07 6:36 
GeneralRe: Printing - Changing a font within a line. Pin
MarkSchultz14-Apr-07 6:51
MarkSchultz14-Apr-07 6:51 
GeneralRe: Printing - Changing a font within a line. Pin
Dave Kreskowiak15-Apr-07 3:42
mveDave Kreskowiak15-Apr-07 3:42 
QuestionThread safe / Cloned XmlSerializer Pin
Tristan Rhodes14-Apr-07 3:25
Tristan Rhodes14-Apr-07 3:25 
AnswerRe: Thread safe / Cloned XmlSerializer Pin
Judah Gabriel Himango17-Apr-07 3:42
sponsorJudah Gabriel Himango17-Apr-07 3:42 
QuestionPlaying contineous sound file on word document1 Pin
sulabh202014-Apr-07 2:27
sulabh202014-Apr-07 2:27 
QuestionAdding Bullets using c# code Pin
sulabh202014-Apr-07 2:20
sulabh202014-Apr-07 2:20 

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.