filterInputByRegex

fun <T : EditText> T.filterInputByRegex(regex: Regex, onTextChanged: (String) -> Unit = {}): T

A keyboard handler for EditText that filters input by regex