number_mask library


pattern is used to define the format for the input. The character '#' is used to indicate where the numbers will be inserted. The pattern can contain any other character that would normally be allowed. The output will have all characters inserted in the same position as in the pattern. The default value is an empty string, so the input will not be formatted unless a pattern is defined.