Regex syntax for currency numbers

Is it possible to constrain a type int with regex? I need that the surveyor
enters with currency number like 9.999,99 (this is Brazil's currency
syntax). What is the regex syntax for this type of question?

Thanks

··· *-- *Ricardo Abdala

I wouldn't use the integer or decimal prompts because they save to a
non-localized format (i.e., removes the period and comma). Use a
string prompt but with appearance="numbers".

Then you can use a regex lie "[\d]+.[\d]+,[\d]+" should work. Iterate
on it at http://rubular.com.

··· On Sun, Jan 6, 2013 at 7:42 AM, Ricardo Abdala wrote: > Is it possible to constrain a type int with regex? I need that the surveyor > enters with currency number like 9.999,99 (this is Brazil's currency > syntax). What is the regex syntax for this type of question? > > Thanks > > -- > Ricardo Abdala > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en