Примерно так object AmountInputFilter : InputFilter { private val regex = """[0-9]{0,5}(\.[0-9]{0,2})?""".toRegex() override fun filter(source: CharSequence?, start: Int, en...
if (value?.isTarget() != false) { action() }