Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: TurtleKicker on February 21, 2019, 11:32:12 PM

Title: Custom profile field input mask regex help
Post by: TurtleKicker on February 21, 2019, 11:32:12 PM
Ok, I suck at this regex stuff. Can't wrap my head around how to do what I want based upon the resources I've found.

Goal: input field with text in the format nnnn-nnnn-nnnn
So 3 sets of 4 numeric digits, separated by 2 hyphens.

Something like: ~[0-9]{4}-[0-9]{4}-[0-9]{4}~

Is that right?
Title: Re: Custom profile field input mask regex help
Post by: Arantor on February 22, 2019, 02:38:36 AM
Looks right to me.