Regex Input Filter
class RegexInputFilter(beforeRegex: String?, afterRegex: String?, ignoreCause: Boolean) : InputFilter
Content copied to clipboard
正则输入过滤器
Parameters
beforeRegex
正则匹配每次输入内容, 如果不匹配则不会允许显示到输入框中, 如果为null则不参与匹配
afterRegex
正则匹配输入后内容, 如果不匹配则不会允许显示到输入框中, 如果为null则不参与匹配
ignoreCause
忽略大小写
Constructors
RegexInputFilter
Link copied to clipboard
fun RegexInputFilter(beforeRegex: String? = null, afterRegex: String? = null, ignoreCause: Boolean = false)
Content copied to clipboard
正则匹配每次输入内容, 如果不匹配则不会允许显示到输入框中, 如果为null则不参与匹配
Functions
filter
Link copied to clipboard
open override fun filter(source: CharSequence, start: Int, end: Int, dest: Spanned, dstart: Int, dend: Int): CharSequence?
Content copied to clipboard
Properties
afterRegex
Link copied to clipboard
beforeRegex
Link copied to clipboard
ignoreCause
Link copied to clipboard