Click here to Skip to main content
15,860,844 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionGUI Framework Pin
Al Baraki11-Oct-05 6:21
Al Baraki11-Oct-05 6:21 
AnswerRe: GUI Framework Pin
Dave Kreskowiak11-Oct-05 6:54
mveDave Kreskowiak11-Oct-05 6:54 
GeneralRe: GUI Framework Pin
John M. Drescher11-Oct-05 12:22
John M. Drescher11-Oct-05 12:22 
GeneralRe: GUI Framework Pin
Dave Kreskowiak11-Oct-05 13:49
mveDave Kreskowiak11-Oct-05 13:49 
QuestionI'm no magician! Pin
CoolAmir11-Oct-05 2:14
CoolAmir11-Oct-05 2:14 
AnswerRe: ME TOO Pin
militiaware12-Oct-05 16:10
militiaware12-Oct-05 16:10 
QuestionRegex URL problem - help needed! Pin
nzmike11-Oct-05 1:25
nzmike11-Oct-05 1:25 
AnswerRe: Regex URL problem - help needed! Pin
minhpc_bk11-Oct-05 16:44
minhpc_bk11-Oct-05 16:44 
Hi Mike,
IMO, you can simply classify the URLs in the text into two groups. For ones starting with http:// you can use the pattern:
http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?
and the pattern:
www.([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?
for others starting with www.
Now you can refine the two patterns to produce a better one that can be used for the two groups:
(http://|www.)([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?
The sample code looks something like:
private ArrayList ExtractUrls(string s)
{
	string pattern = @"(http://|www.)([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?";

	Regex r = new Regex(pattern, RegexOptions.Compiled);
	MatchCollection matches = r.Matches(s);
	ArrayList list = new ArrayList();
	foreach(Match match in matches)
		list.Add(match.Value);
                 
	return list;
}

GeneralRe: Regex URL problem - help needed! Pin
nzmike11-Oct-05 16:48
nzmike11-Oct-05 16:48 
QuestionIIS Pin
Nisha8010-Oct-05 22:33
Nisha8010-Oct-05 22:33 
AnswerRe: IIS Pin
Dave Kreskowiak11-Oct-05 6:51
mveDave Kreskowiak11-Oct-05 6:51 
AnswerRe: IIS Pin
Nuray15-Oct-05 0:22
Nuray15-Oct-05 0:22 
Questioninterview question Pin
Anonymous9-Oct-05 20:18
Anonymous9-Oct-05 20:18 
AnswerRe: interview question Pin
Colin Angus Mackay9-Oct-05 21:37
Colin Angus Mackay9-Oct-05 21:37 
GeneralRe: interview question Pin
Anonymous9-Oct-05 22:45
Anonymous9-Oct-05 22:45 
QuestionStreamWriter cutting short Pin
nim529-Oct-05 11:49
nim529-Oct-05 11:49 
AnswerRe: StreamWriter cutting short Pin
Dave Kreskowiak9-Oct-05 14:38
mveDave Kreskowiak9-Oct-05 14:38 
GeneralRe: StreamWriter cutting short Pin
nim529-Oct-05 14:51
nim529-Oct-05 14:51 
AnswerRe: StreamWriter cutting short Pin
S. Senthil Kumar9-Oct-05 19:28
S. Senthil Kumar9-Oct-05 19:28 
Questionhow can i send SUM Parameter from Form to.. Pin
kings_19-Oct-05 8:45
kings_19-Oct-05 8:45 
QuestionHow to determine the installation directory in a setup project... Pin
Fredy8-Oct-05 6:57
Fredy8-Oct-05 6:57 
AnswerRe: How to determine the installation directory in a setup project... Pin
rwestgraham8-Oct-05 21:10
rwestgraham8-Oct-05 21:10 
AnswerRe: How to determine the installation directory in a setup project... Pin
Fredy9-Oct-05 8:31
Fredy9-Oct-05 8:31 
NewsNDoc for .NET v.2.0 Pin
jjrdk8-Oct-05 6:12
jjrdk8-Oct-05 6:12 
GeneralRe: NDoc for .NET v.2.0 - here's the XML Pin
Colin Angus Mackay8-Oct-05 8:30
Colin Angus Mackay8-Oct-05 8:30 

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.