Documentation / dataflow / com.femastudios.dataflow.extensions / kotlin.text.Regex
Go to reference

Extensions for kotlin.text.Regex

containsMatchIn

Same as containsMatchIn, but accepts Field and returns a new Field.

fun Regex.containsMatchIn(input: Field<CharSequence>): Field<Boolean>

find

Same as find, but accepts Field and returns a new Field.

fun Regex.find(input: Field<CharSequence>, startIndex: Field<Int> = com.femastudios.dataflow.util.fieldOf(0)): Field<MatchResult?>
fun Regex.find(input: Field<CharSequence>, startIndex: Int = 0): Field<MatchResult?>
fun Regex.find(input: CharSequence, startIndex: Field<Int>): Field<MatchResult?>

findAll

Same as findAll, but accepts Field and returns a new Field.

fun Regex.findAll(input: Field<CharSequence>, startIndex: Field<Int> = com.femastudios.dataflow.util.fieldOf(0)): Field<Sequence<MatchResult>>
fun Regex.findAll(input: Field<CharSequence>, startIndex: Int = 0): Field<Sequence<MatchResult>>
fun Regex.findAll(input: CharSequence, startIndex: Field<Int>): Field<Sequence<MatchResult>>

matchEntire

Same as matchEntire, but accepts Field and returns a new Field.

fun Regex.matchEntire(input: Field<CharSequence>): Field<MatchResult?>

matches

Same as matches, but accepts Field and returns a new Field.

infix fun Regex.matches(input: Field<CharSequence>): Field<Boolean>

replace

Same as replace, but accepts Field and returns a new Field.

fun Regex.replace(input: Field<CharSequence>, replacement: Field<String>): Field<String>
fun Regex.replace(input: Field<CharSequence>, replacement: String): Field<String>
fun Regex.replace(input: Field<CharSequence>, transform: (MatchResult) -> CharSequence): Field<String>
fun Regex.replace(input: CharSequence, replacement: Field<String>): Field<String>

replaceFirst

Same as replaceFirst, but accepts Field and returns a new Field.

fun Regex.replaceFirst(input: Field<CharSequence>, replacement: Field<String>): Field<String>
fun Regex.replaceFirst(input: Field<CharSequence>, replacement: String): Field<String>
fun Regex.replaceFirst(input: CharSequence, replacement: Field<String>): Field<String>

split

Same as split, but accepts Field and returns a new Field.

fun Regex.split(input: Field<CharSequence>, limit: Field<Int> = com.femastudios.dataflow.util.fieldOf(0)): Field<List<String>>
fun Regex.split(input: Field<CharSequence>, limit: Int = 0): Field<List<String>>
fun Regex.split(input: CharSequence, limit: Field<Int>): Field<List<String>>