Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
QuestionHow to create TCP Listener windows service usingC# Pin
Baqer24-Sep-03 19:53
Baqer24-Sep-03 19:53 
AnswerRe: How to create TCP Listener windows service usingC# Pin
James Simpson25-Sep-03 3:48
James Simpson25-Sep-03 3:48 
QuestionWhat's different between OnLoad and [FormName]_Load? Pin
Libra24-Sep-03 17:43
Libra24-Sep-03 17:43 
AnswerRe: What's different between onload and [FormName]_Load? Pin
Derek Lakin24-Sep-03 21:41
Derek Lakin24-Sep-03 21:41 
GeneralWriting hexadecimal to a file Pin
samodrak24-Sep-03 15:00
samodrak24-Sep-03 15:00 
GeneralRe: Writing hexadecimal to a file Pin
Julian Bucknall [MSFT]25-Sep-03 5:03
Julian Bucknall [MSFT]25-Sep-03 5:03 
GeneralSocket Blocking Pin
Andrew Shapira24-Sep-03 14:40
Andrew Shapira24-Sep-03 14:40 
GeneralHelp with regular expressions Pin
Wjousts24-Sep-03 13:17
Wjousts24-Sep-03 13:17 
I want to match and replace a character sequence in the middle of a string, but the same sequence could appear at the begining or the end of the string as well and should be left alone. So for example:
Regex r = new Regex("a");
will match all occurences of "a" in a string, but:
Regex r = new Regex("^a");<br />
will only match "a" if it occurs at the begining of the string, and:<br />
<code>Regex r = new Regex("a$");<br />
will match it at the end. The trouble is I want to match "a" when it doesn't appear at the begining or the end of a string. There doesn't seem to be a way to say not begining and not end though? Does anybody know if such a thing is possible? I could use:<br />
<code>Regex r = new Regex(".a.");

but that will also match the character before and after the "a" which I don't want to replace.

Cheers

WJ
GeneralRe: Help with regular expressions Pin
Blake Coverett24-Sep-03 13:31
Blake Coverett24-Sep-03 13:31 
GeneralRe: Help with regular expressions Pin
Wjousts24-Sep-03 15:04
Wjousts24-Sep-03 15:04 
GeneralRe: Help with regular expressions Pin
Anthony_Yio24-Sep-03 17:16
Anthony_Yio24-Sep-03 17:16 
GeneralCOM Interop - .NET COM events and C++ client Pin
blade24-Sep-03 12:54
blade24-Sep-03 12:54 
General? The Key Events Pin
Frank Olorin Rizzi24-Sep-03 12:19
Frank Olorin Rizzi24-Sep-03 12:19 
GeneralRe: ? The Key Events Pin
Frank Olorin Rizzi24-Sep-03 12:48
Frank Olorin Rizzi24-Sep-03 12:48 
GeneralInfo for switch statements Pin
Omega50124-Sep-03 11:59
Omega50124-Sep-03 11:59 
GeneralRe: Info for switch statements Pin
Julian Bucknall [MSFT]24-Sep-03 14:55
Julian Bucknall [MSFT]24-Sep-03 14:55 
GeneralRe: Info for switch statements Pin
Omega50124-Sep-03 18:31
Omega50124-Sep-03 18:31 
GeneralRe: Info for switch statements Pin
Julian Bucknall [MSFT]25-Sep-03 4:56
Julian Bucknall [MSFT]25-Sep-03 4:56 
GeneralRe: Info for switch statements Pin
Anonymous25-Sep-03 17:55
Anonymous25-Sep-03 17:55 
GeneralWrite CDs Pin
Ricardo Mendes24-Sep-03 11:33
Ricardo Mendes24-Sep-03 11:33 
GeneralRe: Write CDs Pin
leppie25-Sep-03 7:38
leppie25-Sep-03 7:38 
GeneralRe: Write CDs Pin
Ricardo Mendes25-Sep-03 7:43
Ricardo Mendes25-Sep-03 7:43 
GeneralRe: Write CDs Pin
Jeremy Kimball25-Sep-03 20:17
Jeremy Kimball25-Sep-03 20:17 
GeneralRe: Write CDs Pin
Tomas Petricek25-Sep-03 9:51
Tomas Petricek25-Sep-03 9:51 
GeneralSending GET to a web service Pin
Ed K24-Sep-03 9:34
Ed K24-Sep-03 9:34 

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.