//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
s | the source String. |
regex | the regular expression, see java.util.regex.Pattern. |
fromIndex | the starting index in s |
Throws
RuntimeException | if trouble |