Hello,
I was wondering how to create an input mask for my custom field of Steam IDs. Steam IDs look like this Steam_0:1:123 but may have more digits (Steam_0:1:1234567). I was wondering how to create an input mask for these to stop people from just typing anything in, and still being able to register.
Thanks for your help,
-Bodom
Seems to me then that you want something like:
/Steam_0:1:\d+/
Assuming 0:1 are constants and the other digits can be anything. If that's not the case more details will be necessary.
Yes the 0 and 1 is constant.
Thank you for your help! I will post back here after some testing, but I'd assume that you know what you're doing and this should work without an issue.
Thanks again,
-Bodom
P.s.
The other digits are only ever numbers, is there a way to add that?
It does that, \d means digits only ;)
Sorry for the delay in my response, but thanks again! :D
Is there a way to make the STEAM entry non-case sensitive?
So you could enter steam, STEAM, Steam or any variation, just as long as its steam then followed by the number.
/Steam_0:1:\d+/i
Thanks again!
Okay so the 1 is not constant xP
I should have checked.. It can be Steam_0:0 or Steam_0:1
/Steam_0:[01]:\d+/i
Sorry, I should have thanked you and marked this as solved.
Thanks for your help, works perfectly!
-Bodom
Glad to hear it works :)