XF 2.1 Custom Thread field - Time validation


I added a custom thread field named "Time (mm:ss)". I would like the users to place the time like i showed in the title: "03:59".
I don't want any other format.

Now i wanted to create a validation for this but i can't seem to find the solution if this is possible and how.
Anyone know?


Well-known member
Assuming you want 12 hours format then copy-paste ^[0-5]?[0-9]:[0-5]?[0-9]$ in custom field's regular expression match format input.
Last edited:


Never mind, i already know what went wrong. I added the zero in front. That was causing a issue. Hmm i need this zero do. What must i do to the code to fix this?