Click here to Skip to main content
15,919,613 members
Home / Discussions / Article Writing
   

Article Writing

 
AnswerRe: Is this article useful on the code project? Pin
DavidNohejl15-Apr-05 1:25
DavidNohejl15-Apr-05 1:25 
GeneralRe: Is this article useful on the code project? Pin
User 19428910-May-05 3:33
User 19428910-May-05 3:33 
Generalftp tutorial Pin
V.G14-Apr-05 18:48
V.G14-Apr-05 18:48 
Generaljava chat application Pin
gizzle12311-Apr-05 9:45
gizzle12311-Apr-05 9:45 
GeneralDesktop Sharing / Application Sharing Pin
Dittto217-Apr-05 13:46
Dittto217-Apr-05 13:46 
GeneralRe: Desktop Sharing / Application Sharing Pin
Ray Cassick13-Apr-05 7:58
Ray Cassick13-Apr-05 7:58 
GeneralRe: Desktop Sharing / Application Sharing Pin
DeepToot20-Apr-05 15:55
DeepToot20-Apr-05 15:55 
GeneralGenerating patterns from a collection of strings Pin
ShajeeDotNet7-Apr-05 5:12
ShajeeDotNet7-Apr-05 5:12 
hi,

I am trying to generate a pattern string from a collection of several strings. I have been trying to do this in c# using System.Text.RegulaExpression however not been able to get good results . Following are some details

Consider the following strings

http://www.yahoo.com/weather/1/2/rain.htm
http://www.yahoo.com/weather/1/3/drops.htm
http://www.yahoo.com/weather/1/4/rain.htm

http://www.yahoo.com/sports/2005/1/cricket.asp
http://www.yahoo.com/sports/2005/2/baseball.htm

http://www.yahoo.com/fun/jokes/laughter.htm

now all these are grouped by their domain name and protocol so this could be removed

so we have

1. weather/1/2/rain.htm
2. weather/1/3/drops.htm
3. weather/1/4/rain.htm

4. sports/2005/1/cricket.asp
5. sports/2005/2/baseball.htm

6. fun/jokes/laughter.htm

Now i have to generate a string which could match maximum no. of these urls

for 1,2,3
it'd be
weather/1

for
4,5 the string would be
sports/2
or
sports/2005/

6 is a single string so whole of it would be taken
fun/jokes/laughter.htm

Now if a person is to do it manually no probs problem arises when this things has to be done on the click of a button or on some event and there are not 6 but hundreds of such strings

Any Suggestions on how do attack this problem.

the woods are lovely dark and deep.
but i have promises to keep.
there are miles to go before i sleep...
there are miles to go before i sleep...
Generalemail client Pin
_tasleem5-Apr-05 10:45
_tasleem5-Apr-05 10:45 
GeneralC# Speech Recognition Pin
Anonymous5-Apr-05 8:20
Anonymous5-Apr-05 8:20 
Generalabout crystal report Pin
satishrg4-Apr-05 17:32
satishrg4-Apr-05 17:32 
GeneralRe: about crystal report Pin
Claudio Grazioli4-Apr-05 20:37
Claudio Grazioli4-Apr-05 20:37 
GeneralREQ: Article on Extending .NET System Classes (C#) Pin
rts@Dallas3-Apr-05 6:31
rts@Dallas3-Apr-05 6:31 
AnswerRe: REQ: Article on Extending .NET System Classes (C#) Pin
peterchen7-Aug-05 8:05
peterchen7-Aug-05 8:05 
GeneralAutoScale Pin
ACorbs28-Mar-05 20:37
ACorbs28-Mar-05 20:37 
QuestionArticle Help: Should I split my article? Pin
oshah26-Mar-05 1:09
oshah26-Mar-05 1:09 
AnswerRe: Article Help: Should I split my article? Pin
Michael Dunn26-Mar-05 10:02
sitebuilderMichael Dunn26-Mar-05 10:02 
GeneralRe: Article Help: Should I split my article? Pin
oshah26-Mar-05 11:02
oshah26-Mar-05 11:02 
GeneralPlease post your valuable comment. Pin
sreejith ss nair17-Mar-05 20:04
sreejith ss nair17-Mar-05 20:04 
GeneralRe: Please post your valuable comment. Pin
Renjith Ramachandran22-Mar-05 15:54
Renjith Ramachandran22-Mar-05 15:54 
GeneralDatabase connection without DSN Pin
Renjith Ramachandran13-Mar-05 23:59
Renjith Ramachandran13-Mar-05 23:59 
GeneralRe: Database connection without DSN Pin
Jeff Martin22-Mar-05 6:36
Jeff Martin22-Mar-05 6:36 
GeneralRe: Database connection without DSN Pin
Renjith Ramachandran22-Mar-05 15:47
Renjith Ramachandran22-Mar-05 15:47 
GeneralRe: Database connection without DSN Pin
Jeff Martin23-Mar-05 2:24
Jeff Martin23-Mar-05 2:24 
GeneralMatlab & *.dll Pin
Member 179956713-Mar-05 2:41
Member 179956713-Mar-05 2:41 

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.