Click here to Skip to main content
15,908,768 members
Home / Discussions / C#
   

C#

 
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 
Questionselect query proble Pin
love yadav30-Jul-11 20:13
love yadav30-Jul-11 20:13 
AnswerRe: select query proble Pin
PIEBALDconsult30-Jul-11 20:56
mvePIEBALDconsult30-Jul-11 20:56 
AnswerRe: select query proble Pin
GuyThiebaut31-Jul-11 3:12
professionalGuyThiebaut31-Jul-11 3:12 
GeneralRe: select query proble Pin
Not Active31-Jul-11 5:25
mentorNot Active31-Jul-11 5:25 
GeneralRe: select query proble Pin
jschell1-Aug-11 8:20
jschell1-Aug-11 8:20 
GeneralRe: select query proble Pin
GuyThiebaut1-Aug-11 8:25
professionalGuyThiebaut1-Aug-11 8:25 
GeneralRe: select query proble Pin
jschell2-Aug-11 9:19
jschell2-Aug-11 9:19 

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.