//ERDDAP/com.cohort.util/ScriptString2/findWholeWord
findWholeWord
[JVM]
open fun findWholeWord(s: String, word: String): Int
This finds (case-sensitive) the first whole word instance of 'word' in s. It will find 'word' at the start or end of s. I.e., the character before and after (if any) mustn't be a letter or digit or '_'.
Return
-1 if not found (or trouble, e.g., find=null)
Parameters
JVM
word | must be a simple word (without regex special characters) |