Lumapit sa pangunahing nilalaman

//ERDDAP/com.cohort.util/ScriptString2/extractRegex

extractRegex

[JVM]
open fun extractRegex(s: String, regex: String, fromIndex: Int): String

This returns the first section of s (starting at fromIndex) which matches regex. !!! Note that . in the regex doesn't match line terminators in s !!!

Return

the section of s which matches regex, or null if not found

Parameters

JVM

sthe source String.
regexthe regular expression, see java.util.regex.Pattern.
fromIndexthe starting index in s

Throws

RuntimeExceptionif trouble