I want to validate if the inputted text is in Katakana.
I have this:
Validators.pattern('[\u30A0-\u30FF]+')
But I also want to accept spaces in between. What should I add?
I want to validate if the inputted text is in Katakana.
I have this:
Validators.pattern('[\u30A0-\u30FF]+')
But I also want to accept spaces in between. What should I add?
Copyright © 2021 Jogjafile Inc.
I solved this problem. I added
\.<space>This accepts Katakana characters and space/s in input field