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

C#

 
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 
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 
OK. Here are a couple:
*note* these are regexes, which may or may not be suitable for use directly in a maskedit control mask field.

integer, 1 - 3 digits with N/A < >
^(N/A)|([<>]?\d{1,3})$

float, 0 - 2 decimal places, with the same extras
^(N/A)|([<>]?\d+\.\d{0,2})$
This one requires at least one digit before the decimal point. If you want to allow .12 change the + in the middle to * .

Following the "teach a man to fish" philosophy, I strongly recommend you get yourself a copy of the free tool Expresso[^]
(I have no connection to Ultrapico other than as a very satisfied user.)

Cheers,
Peter

[edit] added *note* [/edit]
Software rusts. Simon Stephenson, ca 1994.
modified on Wednesday, August 3, 2011 9:17 PM

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 
Questionfind data between 2 dates Pin
goldsoft1-Aug-11 2:25
goldsoft1-Aug-11 2:25 
AnswerRe: find data between 2 dates Pin
SomeGuyThatIsMe1-Aug-11 2:45
SomeGuyThatIsMe1-Aug-11 2:45 
AnswerRe: find data between 2 dates Pin
PIEBALDconsult1-Aug-11 2:52
mvePIEBALDconsult1-Aug-11 2:52 
AnswerRe: find data between 2 dates Pin
OriginalGriff1-Aug-11 8:34
mveOriginalGriff1-Aug-11 8:34 
AnswerRe: find data between 2 dates Pin
#realJSOP1-Aug-11 9:54
professional#realJSOP1-Aug-11 9:54 

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.