Questions tagged [input-mask]

A string expression, defined by a developer, that governs what a user is allowed to enter in as input in a text box.

An input mask is in general a set of rules, that entered data must conform to, mainly used for the purposes of data integrity by preventing transcription errors. The syntax of this string expression differs from implementation to implementation, but the fundamental input types are all supported.

Some frequent uses of input masks include entry of telephone numbers, ZIP or postal codes, times and dates.

229 questions
-4
votes
1 answer

Regex pattern needed for this example: 99999999/99 DD/MM/YYYY

First 10 digits with space is working fine but my date regex is…
Uttam Kumar
  • 17
  • 1
  • 6
-4
votes
1 answer

Generating pass_words with input mask

I have such input masked word like --- and I want to replace all - with numbers(0-9) Code: def masker(input_mask,pattern): s = list() s = (itertools.product(pattern,repeat=1)) for i in input_mask: if ( i=='-'): for j in s : print…
keyvan vafaee
  • 464
  • 4
  • 15
-4
votes
1 answer

php I can`t create an input mask

I need to create an input mask using php to insert users in a database. The input mask must be like "U00000+number". Ive been trying to do it but I didnt succeed. Any help please?
-5
votes
2 answers

How can i aa multi "-" with str_replace in PHP

my str is : 999999999 Now, how can i add "-" in this str ? my example with "-" : 99-9-9-99999
MNamazi
  • 101
  • 1
  • 14
1 2 3
15
16