I want to allow users only to type certain characters based on the a regex in my android applications. How do I achieve it?