Click here to Skip to main content
15,917,328 members
Home / Discussions / C#
   

C#

 
GeneralRe: Nice antialiased icons Pin
Heath Stewart3-Jun-04 17:16
protectorHeath Stewart3-Jun-04 17:16 
GeneralRe: Nice antialiased icons Pin
leppie4-Jun-04 7:20
leppie4-Jun-04 7:20 
GeneralRe: Nice antialiased icons Pin
Heath Stewart4-Jun-04 9:24
protectorHeath Stewart4-Jun-04 9:24 
GeneralRe: Nice antialiased icons Pin
leppie4-Jun-04 10:10
leppie4-Jun-04 10:10 
GeneralRe: Nice antialiased icons Pin
Heath Stewart4-Jun-04 10:12
protectorHeath Stewart4-Jun-04 10:12 
GeneralRe: Nice antialiased icons Pin
XanderSon4-Jun-04 12:57
XanderSon4-Jun-04 12:57 
GeneralRe: Nice antialiased icons Pin
Heath Stewart4-Jun-04 13:32
protectorHeath Stewart4-Jun-04 13:32 
GeneralEscape characters and regex Pin
cardboard423-Jun-04 14:34
cardboard423-Jun-04 14:34 
I'm writing a little command line regex search and replace doodad. The user can put in some input, either through a file or stdin a search expression via command line or a file, and a replace expression via command line or file. It's the replace expressions that are giving me trouble. I'd like to be able to put a \t in the replace expression and have it place a tab during the replace.

When I put the \t in a string in the code, it gets replaced as a tab, of course. But if I put one in the expression on the command line, it gets read as a literal string. When I read the expression from a file, even if it has hard tabs in it, they somehow get converted to literal /t's somewhere in the replacing. I'm totally stumped. Can someone help me?

EDIT: I ended up using regex to find all the \t's (and \n's) in the replace string and replacing them with tabs and newlines. To actually find a literal \t though, I ended up having to quadruple escape them (\\\\t) :p.
GeneralRe: Escape characters and regex Pin
Heath Stewart3-Jun-04 17:10
protectorHeath Stewart3-Jun-04 17:10 
GeneralRe: Escape characters and regex Pin
leppie4-Jun-04 10:44
leppie4-Jun-04 10:44 
GeneralGetting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
link_793-Jun-04 12:51
link_793-Jun-04 12:51 
GeneralRe: Getting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
Andrew McCarter3-Jun-04 13:29
Andrew McCarter3-Jun-04 13:29 
GeneralRe: Getting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
link_793-Jun-04 13:34
link_793-Jun-04 13:34 
GeneralRe: Getting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
leppie4-Jun-04 7:25
leppie4-Jun-04 7:25 
GeneralNew to Programming/C# Pin
tweakk3-Jun-04 11:22
tweakk3-Jun-04 11:22 
GeneralRe: New to Programming/C# Pin
palbano3-Jun-04 11:27
palbano3-Jun-04 11:27 
GeneralRe: New to Programming/C# Pin
Heath Stewart3-Jun-04 12:09
protectorHeath Stewart3-Jun-04 12:09 
GeneralRe: New to Programming/C# Pin
Wackatronic4-Jun-04 1:09
Wackatronic4-Jun-04 1:09 
GeneralMDI Forms From Hell Pin
antoine@orchus-tech3-Jun-04 9:31
antoine@orchus-tech3-Jun-04 9:31 
GeneralRe: MDI Forms From Hell Pin
bneacetp3-Jun-04 9:58
bneacetp3-Jun-04 9:58 
GeneralRe: MDI Forms From Hell Pin
antoine@orchus-tech3-Jun-04 10:03
antoine@orchus-tech3-Jun-04 10:03 
GeneralRe: MDI Forms From Hell Pin
bneacetp3-Jun-04 10:32
bneacetp3-Jun-04 10:32 
GeneralGetting The Screen Resolution Pin
bjaminn3-Jun-04 8:39
bjaminn3-Jun-04 8:39 
GeneralRe: Getting The Screen Resolution Pin
bneacetp3-Jun-04 9:33
bneacetp3-Jun-04 9:33 
GeneralRe: Getting The Screen Resolution Pin
Heath Stewart3-Jun-04 10:16
protectorHeath Stewart3-Jun-04 10:16 

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.