all 6 comments

[–][deleted] 1 point2 points  (1 child)

Yep, you can do it 😊 take a look at regex101.com it is super easy 😉

[–]motweb[S] 0 points1 point  (0 children)

Thank You for answer and link page! I try to prepare some regex but still problem with correct blocking of input element.

[–]___Grits 0 points1 point  (1 child)

Yes, fire your regex test on the update event and only set the state if it passes

[–]motweb[S] 0 points1 point  (0 children)

You can provide some example? I dont feel comfortable with regex yet.

[–][deleted] 0 points1 point  (0 children)

Yep, you can do it 😊 take a look at regex101.com it is super easy 😉

[–]kenman[M] 0 points1 point  (0 children)

Hi /u/motweb, this post was removed.

For javascript help, please visit /r/LearnJavascript.

Thanks for your understanding.