is there a way to add regex validation in custom fields for signing up in moodle? I'm tricking with the signup_form.php and signup.php files but i can't manage to achieve it. I added some fields with the addelement() function and addrule() but it would be a problem in upgrading. How can i validate fields via lib.php?
Really thanks for your answer