• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Regex Validation Rule... ANSWERED

Regex Validation Rule... ANSWERED 12 years 7 months ago #19110

I have tried support but no answers. This should be SIMPLE.

User should input elapsed time (like a stopwatch) w/ format as mm:ss

I have tried:

Validation Rule = Regex
Regex Syntax = ^(([0-9])|([0-1][0-9])|([2][0-3])):(([0-9])|([0-5][0-9]))$

But i get the dreaded "invalid input" when entering dummy data (4:55, 6:34, 1:19...)

any help would be SOO appreciated.

HERE IS THE HELPFUL ANSWER FROM SUPPORT:
The Regex validation uses preg_match function, you can read more about this here:

php.net/manual/en/function.preg-match.php

The preg_match function required delimiters for the syntax, please try using the syntax:

#^(([0-9])|([0-1][0-9])|([2][0-3])):(([0-9])|([0-5][0-9]))$#
Last Edit: 12 years 7 months ago by cberry1971. Reason: Answered question
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!