|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hi,
I'm having trouble defining a Regex in C# that would validate input in a textbox. The following strings should be valid: "mkt" - or - "mcl" - or - a number (representing a price) in any of the following formats: "123" - without a decimal part "123." - with a dot but without a decimal part "123.4" - with a dot but incomplete decimal part "123.45" - with complete decimal part (2 decimal places max!) ".1" - incomlete whole and incomplete decimal ".12" - incomlete whole Any help would be highly appreciated!! Thank you very much, Marina |
|
#2
|
|||
|
|||
|
i dont know c#, but i do know regexp,
try this /[0-9.]+/ that is only perl regexp tho |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > help with defining a Regex format for a Text Box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|