Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
AnswerRe: Interface and Implementing Class Relationship [modified] Pin
Paul Michalik11-Sep-10 23:04
Paul Michalik11-Sep-10 23:04 
GeneralRe: Interface and Implementing Class Relationship [modified] Pin
infinateone12-Sep-10 9:01
infinateone12-Sep-10 9:01 
GeneralRe: Interface and Implementing Class Relationship Pin
Pete O'Hanlon12-Sep-10 10:16
mvePete O'Hanlon12-Sep-10 10:16 
GeneralRe: Interface and Implementing Class Relationship Pin
infinateone12-Sep-10 10:44
infinateone12-Sep-10 10:44 
AnswerRe: Interface and Implementing Class Relationship Pin
infinateone12-Sep-10 11:07
infinateone12-Sep-10 11:07 
GeneralRe: Interface and Implementing Class Relationship Pin
Paul Michalik12-Sep-10 20:30
Paul Michalik12-Sep-10 20:30 
GeneralRe: Interface and Implementing Class Relationship Pin
infinateone13-Sep-10 4:38
infinateone13-Sep-10 4:38 
GeneralRegular Expressions Pin
Bassam Abdul-Baki10-Sep-10 3:53
professionalBassam Abdul-Baki10-Sep-10 3:53 
Assuming I have a string of numbers beginning with "6" (i.e., "612345"). I wish to check if the numbers 6, 2, and 4 appear in that order. Thus, I can check for "6[0-9]*2[0-9]*4" using regular expressions. However, knowing that the numbers I'm checking have to begin with a 6, does it actually save me time to only search for "2[0-9]*4"? The reason I ask is because logically, using the first search, "6" would be found in the first character and "2" would start from the second character. However, using the second search, "2" would start from the first character which I already know to be a "6". In the first case, I get code readability, while in the second, I'm only searching for what the minimum is needed. I'm wondering if there is any optimization technique that could possibly make the first method run faster than the second?

Thanks!

GeneralRe: Regular Expressions Pin
Luc Pattyn10-Sep-10 3:58
sitebuilderLuc Pattyn10-Sep-10 3:58 
GeneralRe: Regular Expressions Pin
Bassam Abdul-Baki10-Sep-10 4:09
professionalBassam Abdul-Baki10-Sep-10 4:09 
GeneralRe: Regular Expressions Pin
PIEBALDconsult10-Sep-10 4:24
mvePIEBALDconsult10-Sep-10 4:24 
GeneralRe: Regular Expressions Pin
Bassam Abdul-Baki10-Sep-10 4:26
professionalBassam Abdul-Baki10-Sep-10 4:26 
GeneralRe: Regular Expressions Pin
PIEBALDconsult10-Sep-10 4:37
mvePIEBALDconsult10-Sep-10 4:37 
GeneralRe: Regular Expressions Pin
Bassam Abdul-Baki10-Sep-10 4:46
professionalBassam Abdul-Baki10-Sep-10 4:46 
GeneralRe: Regular Expressions Pin
Alan Balkany10-Sep-10 4:02
Alan Balkany10-Sep-10 4:02 
GeneralRe: Regular Expressions Pin
Bassam Abdul-Baki10-Sep-10 4:11
professionalBassam Abdul-Baki10-Sep-10 4:11 
GeneralRe: Regular Expressions Pin
Alan Balkany10-Sep-10 4:12
Alan Balkany10-Sep-10 4:12 
GeneralRe: Regular Expressions Pin
Bassam Abdul-Baki10-Sep-10 4:15
professionalBassam Abdul-Baki10-Sep-10 4:15 
GeneralRe: Regular Expressions Pin
Alan Balkany10-Sep-10 4:22
Alan Balkany10-Sep-10 4:22 
GeneralRe: Regular Expressions Pin
Bassam Abdul-Baki10-Sep-10 4:27
professionalBassam Abdul-Baki10-Sep-10 4:27 
GeneralRe: Regular Expressions [modified] Pin
Luc Pattyn10-Sep-10 4:34
sitebuilderLuc Pattyn10-Sep-10 4:34 
GeneralRe: Regular Expressions Pin
Alan Balkany10-Sep-10 4:39
Alan Balkany10-Sep-10 4:39 
GeneralRe: Regular Expressions Pin
Luc Pattyn10-Sep-10 4:56
sitebuilderLuc Pattyn10-Sep-10 4:56 
GeneralRe: Regular Expressions Pin
Bassam Abdul-Baki10-Sep-10 4:40
professionalBassam Abdul-Baki10-Sep-10 4:40 
GeneralRe: Regular Expressions Pin
Bassam Abdul-Baki10-Sep-10 4:59
professionalBassam Abdul-Baki10-Sep-10 4:59 

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.