T O P I C R E V I E W |
anavagomez |
Posted - 06/28/2012 : 08:05:08 Hello,
I would like to ask for some help regarding a custom Textbox Mask.
I need to make sure that the values entered in a few textboxes are numbers in this format:
.0 or .00 or 0.0, or 0.00
I think a regular expression can be used, as a matter of fact I used one when the values are saved from a c# program I wrote and that reg exp looks like:
"^(\\d+)?(\\.\\d*)?$"
Can I use that same Reg Exp in report portal, or what the syntax would be in this case?
Thank you much for your help.
 |
4 L A T E S T R E P L I E S (Newest First) |
admin |
Posted - 06/28/2012 : 19:40:04 No, *9.9* would require to digits before the decimal point. In your case it would be the best if you just allow numbers and period like:
9^. |
anavagomez |
Posted - 06/28/2012 : 12:01:54 will it be?
*9.9* |
anavagomez |
Posted - 06/28/2012 : 11:54:49 thank you that helps a lot.
i just need to be able to also permit this format:
.0 or .00 or 0.0, or 0.00, or 00.00
thas was my bad, i forgot to include it on my forst post. |
admin |
Posted - 06/28/2012 : 10:57:49 Are you talking about Textbox Mask for Data Entry form? It is not using Regular Expression but a third party library called Masked Input (http://jsfromhell.com/forms/masked-input).
Please try: *.9* |