Click here to Skip to main content
15,910,877 members
Home / Discussions / C#
   

C#

 
QuestionCreating at VPN Client Pin
shopi3013-Mar-06 12:40
shopi3013-Mar-06 12:40 
Questionproblem creating a function Pin
JuanAlbertoMD13-Mar-06 10:57
JuanAlbertoMD13-Mar-06 10:57 
AnswerRe: problem creating a function Pin
Colin Angus Mackay13-Mar-06 11:35
Colin Angus Mackay13-Mar-06 11:35 
QuestionParsing text file - Regular Expression vs. Substring Pin
Dale Hegler13-Mar-06 10:48
Dale Hegler13-Mar-06 10:48 
AnswerRe: Parsing text file - Regular Expression vs. Substring Pin
Guffa13-Mar-06 13:31
Guffa13-Mar-06 13:31 
GeneralRe: Parsing text file - Regular Expression vs. Substring Pin
Dale Hegler13-Mar-06 13:38
Dale Hegler13-Mar-06 13:38 
GeneralRe: Parsing text file - Regular Expression vs. Substring Pin
leppie13-Mar-06 20:24
leppie13-Mar-06 20:24 
AnswerRe: Parsing text file - Regular Expression vs. Substring Pin
Guffa14-Mar-06 1:47
Guffa14-Mar-06 1:47 
Yes, using RegEx is somewhat expensive, but on the other hand if the match does exactly what you want, you can hardly do it in a more efficient way. A regular expression can do matches that would need quite a lot of code to do with plain string operations.

For an example, checking if a range of characters in a string are digits is very easy to do with a regular expression, while doing the same with string operations would require you to loop through the characters and check each character individually.

-- modified at 7:48 Tuesday 14th March, 2006

As for performance, it will be sufficient in most cases. When I used RegEx for parsing the web logs, it goes through about 20000 lines a second, and I think that most of that time is actually spent reading the data from disk. So as long as you are reading the data from a file, you needn't worry about the performance of the RegEx object.

---
b { font-weight: normal; }

GeneralRe: Parsing text file - Regular Expression vs. Substring Pin
Dale Hegler14-Mar-06 3:37
Dale Hegler14-Mar-06 3:37 
QuestionForms dependency Pin
vfraenckel13-Mar-06 9:37
vfraenckel13-Mar-06 9:37 
AnswerRe: Forms dependency Pin
Colin Angus Mackay13-Mar-06 11:38
Colin Angus Mackay13-Mar-06 11:38 
GeneralRe: Forms dependency Pin
vfraenckel21-Mar-06 3:41
vfraenckel21-Mar-06 3:41 
GeneralRe: Forms dependency Pin
Colin Angus Mackay21-Mar-06 4:15
Colin Angus Mackay21-Mar-06 4:15 
QuestionDataGridView's BackgroundImage Property Pin
Bobby88713-Mar-06 9:21
Bobby88713-Mar-06 9:21 
QuestionAre variables objects? Pin
haseeb_saeed13-Mar-06 8:58
haseeb_saeed13-Mar-06 8:58 
AnswerRe: Are variables objects? Pin
Judah Gabriel Himango13-Mar-06 9:43
sponsorJudah Gabriel Himango13-Mar-06 9:43 
AnswerRe: Are variables objects? Pin
Divyang Mithaiwala13-Mar-06 17:44
Divyang Mithaiwala13-Mar-06 17:44 
GeneralRe: Are variables objects? Pin
J4amieC13-Mar-06 23:07
J4amieC13-Mar-06 23:07 
QuestionSetup and Deployment Pin
JMichael246813-Mar-06 8:57
JMichael246813-Mar-06 8:57 
AnswerRe: Setup and Deployment Pin
Robert Rohde13-Mar-06 10:19
Robert Rohde13-Mar-06 10:19 
QuestionHandling Text in Text Box Pin
haseeb_saeed13-Mar-06 8:45
haseeb_saeed13-Mar-06 8:45 
AnswerRe: Handling Text in Text Box Pin
Dave Kreskowiak13-Mar-06 10:39
mveDave Kreskowiak13-Mar-06 10:39 
AnswerRe: Handling Text in Text Box Pin
Drew McGhie13-Mar-06 11:42
Drew McGhie13-Mar-06 11:42 
Questiongetting GPS coordinates on pocketpc Pin
BlackDice13-Mar-06 8:15
BlackDice13-Mar-06 8:15 
AnswerRe: getting GPS coordinates on pocketpc Pin
Dave Kreskowiak13-Mar-06 10:36
mveDave Kreskowiak13-Mar-06 10:36 

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.