getByPatternContaining

fun Position.getByPatternContaining(pattern: Regex, text: String): String?

Return

the substring that matches the given pattern and contains the given position, or null if no match is found

Parameters

text

the text content to search in