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

C#

 
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 
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 
I found out what I was doing wrong. I need to match the whole string (not only the part I wanted to extract). So I added a named variable called <rest> to match the rest.

This my current version:

<br />
// Takes an url and returns the path. can both handle http://www.mypage.com/folder/ and http://www.mypage.com/folder/somestuff=blabla?etc<br />
private String stripFromUrl( string url )<br />
	{<br />
		String stripUrlPattern = "(?<fixedUrl>http:// [ \\w \\. / ]+) (?(/) (?<rest>.+) | (?<rest>(?<=/).+) )";<br />
		Regex r = new Regex(stripUrlPattern, RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace);<br />
		string stripurl = r.Replace (url, "${fixedUrl}");<br />
		return stripurl;<br />
	}<br />

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 
Generalserial to parallel data conversion code in C# Pin
4-Jul-05 0:55
suss4-Jul-05 0:55 
GeneralPlz help me Pin
Member 17061224-Jul-05 0:47
Member 17061224-Jul-05 0:47 
GeneralRe: Plz help me Pin
S. Senthil Kumar4-Jul-05 1:09
S. Senthil Kumar4-Jul-05 1:09 

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.