question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Optional character

See original GitHub issue

There 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:open
  • Created 8 years ago
  • Reactions:17
  • Comments:37 (7 by maintainers)

github_iconTop GitHub Comments

92reactions
dapicommented, Apr 3, 2016

I can do it for 100$ )

70reactions
cezarsmpiocommented, Jan 11, 2016

For example, in Brazil, some states have the phone number with one digit more. While some have 8 digits, others have 9 digits.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found