Using Regex

H Guy,

I Want to enter a code like that 12345_12. The five first numbers could any
integer and this sign "_" and the two last numbers could be any integer.
Here is my constraint. and it doesn't work. Can any one help me?

regex(.,'^([0-9]+-[0-9]{5,2}$')

regex(.,'[1]{5}_[0-9]{2}$')

http://regexone.com has tutorials for regex.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Wed, Jul 9, 2014 at 8:10 PM, Legarraudien pagarraud1@gmail.com wrote:

H Guy,

I Want to enter a code like that 12345_12. The five first numbers could any integer and this sign "_" and the two last numbers could be any integer. Here is my constraint. and it doesn't work. Can any one help me?

regex(.,'^([0-9]+-[0-9]{5,2}$')

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1. 0-9 ↩︎

1 Like

Hi Yaw,
I Can't Type the "_" and i have a constraint message "the aswer is not
correct".

··· 2014-07-09 20:14 GMT-07:00 Yaw Anokwa :

regex(.,'[1]{5}_[0-9]{2}$')

http://regexone.com has tutorials for regex.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Wed, Jul 9, 2014 at 8:10 PM, Legarraudien pagarraud1@gmail.com wrote:

H Guy,

I Want to enter a code like that 12345_12. The five first numbers could
any integer and this sign "_" and the two last numbers could be any
integer. Here is my constraint. and it doesn't work. Can any one help me?

regex(.,'^([0-9]+-[0-9]{5,2}$')

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1. 0-9 ↩︎

My regex work if i change "" with "-". How can i select this symbol ""

··· 2014-07-10 5:03 GMT-07:00 Pierre Anthony Garraud :

Hi Yaw,
I Can't Type the "_" and i have a constraint message "the aswer is not
correct".

2014-07-09 20:14 GMT-07:00 Yaw Anokwa yanokwa@nafundi.com:

regex(.,'[1]{5}_[0-9]{2}$')

http://regexone.com has tutorials for regex.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Wed, Jul 9, 2014 at 8:10 PM, Legarraudien pagarraud1@gmail.com wrote:

H Guy,

I Want to enter a code like that 12345_12. The five first numbers could
any integer and this sign "_" and the two last numbers could be any
integer. Here is my constraint. and it doesn't work. Can any one help me?

regex(.,'^([0-9]+-[0-9]{5,2}$')

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1. 0-9 ↩︎

Pierre,

Depends on the keyboard. On mine, it's shift + the key between )/0 and
+/=. The character is called an underscore (un souligné, un tiret
bas). You can also copy and paste it into your form.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Thu, Jul 10, 2014 at 6:51 AM, Pierre Anthony Garraud pagarraud1@gmail.com wrote:

My regex work if i change "" with "-". How can i select this symbol ""

2014-07-10 5:03 GMT-07:00 Pierre Anthony Garraud pagarraud1@gmail.com:

Hi Yaw,
I Can't Type the "_" and i have a constraint message "the aswer is not
correct".

2014-07-09 20:14 GMT-07:00 Yaw Anokwa yanokwa@nafundi.com:

regex(.,'[1]{5}_[0-9]{2}$')

http://regexone.com has tutorials for regex.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Wed, Jul 9, 2014 at 8:10 PM, Legarraudien pagarraud1@gmail.com wrote:

H Guy,

I Want to enter a code like that 12345_12. The five first numbers could
any integer and this sign "_" and the two last numbers could be any
integer. Here is my constraint. and it doesn't work. Can any one help me?

regex(.,'^([0-9]+-[0-9]{5,2}$')

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1. 0-9 ↩︎

Thanks a lot, i'll try it

··· 2014-07-10 7:31 GMT-07:00 Yaw Anokwa :

Pierre,

Depends on the keyboard. On mine, it's shift + the key between )/0 and
+/=. The character is called an underscore (un souligné, un tiret
bas). You can also copy and paste it into your form.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Thu, Jul 10, 2014 at 6:51 AM, Pierre Anthony Garraud pagarraud1@gmail.com wrote:

My regex work if i change "" with "-". How can i select this symbol ""

2014-07-10 5:03 GMT-07:00 Pierre Anthony Garraud pagarraud1@gmail.com:

Hi Yaw,
I Can't Type the "_" and i have a constraint message "the aswer is not
correct".

2014-07-09 20:14 GMT-07:00 Yaw Anokwa yanokwa@nafundi.com:

regex(.,'[1]{5}_[0-9]{2}$')

http://regexone.com has tutorials for regex.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Wed, Jul 9, 2014 at 8:10 PM, Legarraudien pagarraud1@gmail.com wrote:

H Guy,

I Want to enter a code like that 12345_12. The five first numbers
could
any integer and this sign "_" and the two last numbers could be any
integer. Here is my constraint. and it doesn't work. Can any one
help me?

regex(.,'^([0-9]+-[0-9]{5,2}$')

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it,
send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1. 0-9 ↩︎