Click here to Skip to main content
15,913,453 members
Home / Discussions / C#
   

C#

 
Questionhow to store sender object in an array ? Pin
fracalifa4-Jul-05 5:00
fracalifa4-Jul-05 5:00 
AnswerRe: how to store sender object in an array ? Pin
Guffa4-Jul-05 5:32
Guffa4-Jul-05 5:32 
AnswerRe: how to store sender object in an array ? Pin
S. Senthil Kumar4-Jul-05 5:32
S. Senthil Kumar4-Jul-05 5:32 
GeneralEventhandling in Outlook (Calendar) Pin
kloakenratte4-Jul-05 4:57
kloakenratte4-Jul-05 4:57 
GeneralDialog post-initialisation Pin
IJay4-Jul-05 4:55
IJay4-Jul-05 4:55 
GeneralRe: Dialog post-initialisation Pin
mav.northwind4-Jul-05 8:17
mav.northwind4-Jul-05 8:17 
GeneralRe: Dialog post-initialisation Pin
IJay4-Jul-05 22:17
IJay4-Jul-05 22:17 
GeneralMysterious regex problems!! Pin
Hauxon4-Jul-05 4:14
Hauxon4-Jul-05 4:14 
Hi, I have a little function for stripping the last part of an url using regular expressions. I did construct the expression in Expresso and have tried it on regexlib.com (http://www.regexlib.com/RETester.aspx). Works beautifully exept in my C# code! Can anyone see what I'm doing wrong.

<br />
// Changes "http://www.website.com/folder/mypage.aspx?param=bleh" <br />
// to "http://www.website.com/folder/"<br />
private String stripFromUrl( string url )<br />
	{<br />
		String stripUrlPattern = "(?<fixedUrl>.+(?<=/))";<br />
		Regex r = new Regex(stripUrlPattern, RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace);<br />
		string stripurl = r.Replace(url, "${fixedUrl}");<br />
		return stripurl;<br />
	}<br />


The problem is that the string does not change at all. It just returns the string unchanged!

Please help! D'Oh! | :doh:
GeneralRe: Mysterious regex problems!! Pin
leppie4-Jul-05 4:43
leppie4-Jul-05 4:43 
GeneralRe: Mysterious regex problems!! Pin
Guffa4-Jul-05 5:22
Guffa4-Jul-05 5:22 
GeneralSOLVED!! Pin
Hauxon4-Jul-05 7:15
Hauxon4-Jul-05 7:15 
GeneralSOLVED!! Pin
Daniel Turini4-Jul-05 12:10
Daniel Turini4-Jul-05 12:10 
GeneralRe: SOLVED!! Pin
Hauxon6-Jul-05 2:13
Hauxon6-Jul-05 2:13 
QuestionWhy .net requires .dll file ? Pin
montu33774-Jul-05 4:11
montu33774-Jul-05 4:11 
AnswerRe: Why .net requires .dll file ? Pin
S. Senthil Kumar4-Jul-05 4:57
S. Senthil Kumar4-Jul-05 4:57 
QuestionHow to use MCI cut command in c#? Pin
Member 20843324-Jul-05 2:48
Member 20843324-Jul-05 2:48 
GeneralAccess Question Pin
Rassul Yunussov4-Jul-05 1:44
Rassul Yunussov4-Jul-05 1:44 
GeneralRe: Access Question Pin
WillemM4-Jul-05 2:47
WillemM4-Jul-05 2:47 
GeneralGetNextControl again .. Pin
kakarato4-Jul-05 1:09
kakarato4-Jul-05 1:09 
GeneralRe: GetNextControl again .. Pin
leppie4-Jul-05 4:45
leppie4-Jul-05 4:45 
GeneralRe: GetNextControl again .. Pin
kakarato4-Jul-05 18:16
kakarato4-Jul-05 18:16 
GeneralPlz help me Pin
Member 17061224-Jul-05 1:05
Member 17061224-Jul-05 1:05 
GeneralRe: Plz help me Pin
leppie4-Jul-05 4:48
leppie4-Jul-05 4:48 
GeneralPlz supply a better subject [nt] Pin
Guffa4-Jul-05 5:37
Guffa4-Jul-05 5:37 
Generalvs.net c++ to mysql 4.1 Pin
__horus__4-Jul-05 1:00
__horus__4-Jul-05 1:00 

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.