inputmask-core icon indicating copy to clipboard operation
inputmask-core copied to clipboard

how to deal with optional characters

Open sebas5384 opened this issue 9 years ago • 13 comments

For example, the bold number is "optional", not always required:

value: 55 48 2332-4456

suggestion of mask: 11 11 **(1)?**1111-1111

sebas5384 avatar Apr 08 '15 07:04 sebas5384

Guys, is there any progress on this feature?

deser avatar Feb 08 '16 07:02 deser

I have the same question, would like to know if it's possible

gbrlsepulveda avatar Feb 24 '16 18:02 gbrlsepulveda

Progress?

renatorib avatar Jul 04 '16 19:07 renatorib

+1

chimanyans avatar Jul 04 '16 20:07 chimanyans

Anything?

leaopedro avatar Jul 18 '16 18:07 leaopedro

+1

longmfe avatar Jul 28 '16 10:07 longmfe

+1

lehcosta avatar Aug 11 '16 20:08 lehcosta

We need to have regular expression support, so that this becomes easy.

mohithg avatar Nov 04 '16 02:11 mohithg

same problem here... any news?

leordev avatar Dec 14 '16 14:12 leordev

Same here. I'm trying to make a currency input which allows any of these:

$1.11 $111.11 $111,111.11 $111,111,111.11 ......

leizhao4 avatar Mar 09 '17 21:03 leizhao4

Same problem here, I would need to support dates with no leading zero on day and month values. These would be supported: 1.1.2017 1.10.2017 20.1.2017 31.12.2017

skarjalainen avatar Aug 18 '17 09:08 skarjalainen

Hi everyone I made this feature on PR #40 hope it helps you.

rodrigowbazevedo avatar Nov 16 '17 13:11 rodrigowbazevedo

+1

thadeu avatar Apr 24 '19 15:04 thadeu