Optional character
See original GitHub issueThere is a way to use a optional char?
Example:
<MaskInput mask="(99) 9999-9999[9]" />
or
<MaskInput mask="(99) 9999-9999{9}" />
or
<MaskInput mask="(99) 9999-99999?" />
Thanks!
Issue Analytics
- State:
- Created 8 years ago
- Reactions:17
- Comments:37 (7 by maintainers)
Top Results From Across the Web
Learn Regular Expressions - Lesson 8: Characters optional
RegexOne provides a set of interactive lessons and exercises to help you learn regular expressions.
Read more >Regex how to match an optional character - Stack Overflow
I need to match on an optional character. It may be there or it may not. Here are two strings. The top string...
Read more >The Question Mark Makes the Preceding Token Optional
The question mark makes the preceding token in the regular expression optional. colou?r matches both colour and color. The question mark is called...
Read more >Optional characters - Mastering Windows PowerShell Scripting
Optional characters. The question mark character ( ? ) can be used to make the preceding character optional. For example, there might be...
Read more >Optional Character Scene - TV Tropes
A video game trope in which a scene or dialogue only plays out if a certain character or characters was brought along with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can do it for 100$ )
For example, in Brazil, some states have the phone number with one digit more. While some have 8 digits, others have 9 digits.