how to use validate:regex in fieldset

I have to validate a field to only accept 8 numbers / 8 numbers. With the regex tester ( I came up with ^\d{8}\/\d{8}$.

Unfortunately this isn't the correct syntax for a fieldset. After some research I found out that the larval syntax is as follows (correct me if I'm wrong):

validate: regex:/(^\d{8}\/\d{8}$)/

Thought it might someone else as well :)

Answered by Jason Varga!
>>>>>>> Answered <<<<<<<
3 Replies