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

Extensions for kotlin.text.Regex

containsMatchIn

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

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

find

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

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

findAll

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

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

matchEntire

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

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

matches

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

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

replace

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

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

replaceFirst

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

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

split

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

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