Click here to Skip to main content
15,897,291 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to work with generic date format Pin
Luc Pattyn3-Aug-11 4:41
sitebuilderLuc Pattyn3-Aug-11 4:41 
GeneralRe: How to work with generic date format Pin
PIEBALDconsult3-Aug-11 16:22
mvePIEBALDconsult3-Aug-11 16:22 
GeneralRe: How to work with generic date format Pin
Luc Pattyn3-Aug-11 16:59
sitebuilderLuc Pattyn3-Aug-11 16:59 
GeneralRe: How to work with generic date format [modified] Pin
PIEBALDconsult3-Aug-11 18:44
mvePIEBALDconsult3-Aug-11 18:44 
GeneralRe: How to work with generic date format Pin
Richard Deeming11-Jan-12 5:44
mveRichard Deeming11-Jan-12 5:44 
QuestionRegEx with < or > Pin
econner1-Aug-11 9:55
econner1-Aug-11 9:55 
AnswerRe: RegEx with Pin
PIEBALDconsult1-Aug-11 14:45
mvePIEBALDconsult1-Aug-11 14:45 
AnswerRe: RegEx with Pin
Peter_in_27801-Aug-11 17:18
professionalPeter_in_27801-Aug-11 17:18 
If you don't want to allow any spaces, try ^[<>]?\d+\.?\d*$ That scans as
^        beginning of string
[<>]?   < or >, zero or one times
\d+      one or more digits
\.?      zero or one decimal points
\d*      zero or more digits
$        end of string


Ran a few cases past Expresso and they look OK. If you want to allow scientific notation, etc, grab the examples from Expresso (see our Free Tools forum for a link) and splice in the [<>]? bit. This one won't allow .3 or >.6 - it requires a digit before a decimal point, but a few minutes with Expresso will get you anywhere.

Cheers,
Peter

ps As the previous answer indicated, the Regular Expressions forum would be more appropriate next time.
Software rusts. Simon Stephenson, ca 1994.

GeneralRe: RegEx with Pin
OriginalGriff1-Aug-11 21:31
mveOriginalGriff1-Aug-11 21:31 
GeneralRe: RegEx with Pin
econner3-Aug-11 4:38
econner3-Aug-11 4:38 
GeneralRe: RegEx with Pin
Peter_in_27803-Aug-11 13:04
professionalPeter_in_27803-Aug-11 13:04 
GeneralRe: RegEx with Pin
econner3-Aug-11 13:27
econner3-Aug-11 13:27 
GeneralRe: RegEx with [modified] Pin
Peter_in_27803-Aug-11 15:11
professionalPeter_in_27803-Aug-11 15:11 
GeneralRe: RegEx with Pin
econner3-Aug-11 15:32
econner3-Aug-11 15:32 
Questionprocessing ozf2 and ozf3 file with c#? Pin
Mohsen Shahindust1-Aug-11 4:11
Mohsen Shahindust1-Aug-11 4:11 
GeneralRe: processing ozf2 and ozf3 file with c#? Pin
David19871-Aug-11 5:10
David19871-Aug-11 5:10 
GeneralRe: processing ozf2 and ozf3 file with c#? Pin
Mohsen Shahindust1-Aug-11 5:17
Mohsen Shahindust1-Aug-11 5:17 
GeneralRe: processing ozf2 and ozf3 file with c#? Pin
David19871-Aug-11 5:24
David19871-Aug-11 5:24 
GeneralRe: processing ozf2 and ozf3 file with c#? Pin
Mohsen Shahindust1-Aug-11 5:31
Mohsen Shahindust1-Aug-11 5:31 
GeneralRe: processing ozf2 and ozf3 file with c#? Pin
Pete O'Hanlon1-Aug-11 5:38
mvePete O'Hanlon1-Aug-11 5:38 
GeneralRe: processing ozf2 and ozf3 file with c#? Pin
Mohsen Shahindust1-Aug-11 5:46
Mohsen Shahindust1-Aug-11 5:46 
GeneralRe: processing ozf2 and ozf3 file with c#? Pin
Pete O'Hanlon1-Aug-11 5:53
mvePete O'Hanlon1-Aug-11 5:53 
GeneralRe: processing ozf2 and ozf3 file with c#? Pin
David19871-Aug-11 5:53
David19871-Aug-11 5:53 
Questionhow run access query with params Pin
goldsoft1-Aug-11 4:05
goldsoft1-Aug-11 4:05 
AnswerRe: how run access query with params Pin
Not Active1-Aug-11 4:11
mentorNot Active1-Aug-11 4:11 

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.