Click here to Skip to main content
15,892,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding Pages on HandleCreated event Pin
Luc Pattyn16-Apr-07 7:14
sitebuilderLuc Pattyn16-Apr-07 7:14 
Questionenum Count and value creating Pin
Saikek16-Apr-07 0:21
Saikek16-Apr-07 0:21 
AnswerRe: enum Count and value creating Pin
Sathesh Sakthivel16-Apr-07 0:44
Sathesh Sakthivel16-Apr-07 0:44 
Questionhelp needed on ClickOnce Deployment Pin
pashitech15-Apr-07 22:46
pashitech15-Apr-07 22:46 
AnswerRe: help needed on ClickOnce Deployment Pin
Judah Gabriel Himango16-Apr-07 10:08
sponsorJudah Gabriel Himango16-Apr-07 10:08 
Question/// means what Pin
Shuaib wasif khan15-Apr-07 22:42
Shuaib wasif khan15-Apr-07 22:42 
AnswerRe: /// means what Pin
Christian Graus15-Apr-07 22:43
protectorChristian Graus15-Apr-07 22:43 
QuestionHelp needed on RegEx.Split() / pattern for dealing with an escaping char. as separator [modified] Pin
girm15-Apr-07 22:24
girm15-Apr-07 22:24 
Hi there,

I would much appreciate if anyone could help me on this problem that is sligthly driving me crazy,

I've a string ... say "abc§123§§456§§§xyz"

I'd like to split it in a string[] , using '§' as separator , now the trick is that '§' is (in this case) also an 'escape' char.
(i.e. in the original string "§§" represent the '§' ... and therefore is not to be considered to be a separator for splitting).

So I am expecting a split like :

abc
123§456§
xyz

My code is (so far):

Regex regExSplit = new Regex("(?<!§)§(?!§)", RegexOptions.IgnoreCase |RegexOptions.Compiled);<br />
string[] splitResult = regExSplit.Split("abc§123§§456§§§xyz");

That split as

abc
123§§456§§§xyz

Thanks for any help Roll eyes | :rolleyes:


Marc


-- modified at 4:51 Monday 16th April, 2007
AnswerRe: Help needed on RegEx.Split() / pattern for dealing with an escaping char. as separator Pin
Judah Gabriel Himango16-Apr-07 10:13
sponsorJudah Gabriel Himango16-Apr-07 10:13 
GeneralRe: Help needed on RegEx.Split() / pattern for dealing with an escaping char. as separator Pin
girm17-Apr-07 0:40
girm17-Apr-07 0:40 
GeneralRe: Help needed on RegEx.Split() / pattern for dealing with an escaping char. as separator Pin
Judah Gabriel Himango17-Apr-07 4:58
sponsorJudah Gabriel Himango17-Apr-07 4:58 
GeneralRe: Help needed on RegEx.Split() / pattern for dealing with an escaping char. as separator Pin
girm17-Apr-07 5:05
girm17-Apr-07 5:05 
Questionallowdrop Pin
sreerajknair15-Apr-07 22:05
sreerajknair15-Apr-07 22:05 
AnswerRe: allowdrop Pin
Christian Graus15-Apr-07 22:44
protectorChristian Graus15-Apr-07 22:44 
QuestionVS 2005 Remoting Pin
L Viljoen15-Apr-07 22:00
professionalL Viljoen15-Apr-07 22:00 
AnswerRe: VS 2005 Remoting Pin
Judah Gabriel Himango16-Apr-07 10:08
sponsorJudah Gabriel Himango16-Apr-07 10:08 
GeneralRe: VS 2005 Remoting Pin
L Viljoen16-Apr-07 20:21
professionalL Viljoen16-Apr-07 20:21 
GeneralRe: VS 2005 Remoting Pin
Judah Gabriel Himango17-Apr-07 4:51
sponsorJudah Gabriel Himango17-Apr-07 4:51 
QuestionProgress bar Issue Pin
sujithkumarsl15-Apr-07 21:47
sujithkumarsl15-Apr-07 21:47 
AnswerRe: Progress bar Issue Pin
Christian Graus15-Apr-07 21:52
protectorChristian Graus15-Apr-07 21:52 
GeneralRe: Progress bar Issue Pin
sujithkumarsl15-Apr-07 22:17
sujithkumarsl15-Apr-07 22:17 
GeneralRe: Progress bar Issue Pin
Christian Graus15-Apr-07 22:45
protectorChristian Graus15-Apr-07 22:45 
GeneralRe: Progress bar Issue Pin
sujithkumarsl15-Apr-07 23:17
sujithkumarsl15-Apr-07 23:17 
GeneralRe: Progress bar Issue Pin
Christian Graus15-Apr-07 23:27
protectorChristian Graus15-Apr-07 23:27 
Questionthread is blocking the gui form, why? Pin
Krzysztof Gorgolewski15-Apr-07 21:29
Krzysztof Gorgolewski15-Apr-07 21:29 

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.