News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Profile Field Input Mask (Regex)

Started by RetributionZA, October 28, 2018, 06:11:07 AM

Previous topic - Next topic

RetributionZA

im strugging with the input mask under  Administration Center »Features and Options » Profile Fields

im trying to get it that a user must enter their discord name followed by a # and then the 4 numbers  e.g. (Discord#1234)

last 4 numbers including the hash must be compulsory but the discord name can be any length


Arantor

/.+#\d{4}$/

Not tested but I think it should work.

RetributionZA

awesome thank, will test and get back to you !  :)

RetributionZA


Advertisement: