Hi guys....
Does anyone know of a function similar to INSTR, but which will take multiple delimiters?
I'd like to search for various possible substrings within a given string using something like
such that the pointer intPtr would have a value of 11 (counting from 1), because that is where the first of the located subtrings started.
Does anyone know of such a function?
I suspect I may have to write my own code to determine the earliest presence of any of a variable number of substrings, and return its offset.
Unless any of you guys know better.....
Does anyone know of a function similar to INSTR, but which will take multiple delimiters?
I'd like to search for various possible substrings within a given string using something like
Code:
Dim intPtr As Integer
Dim strSource As String
strSource = "This is a silly question to ask, but you never know!"
intPtr = AdvancedInstr(strSource, "question", "never", "silly")
Does anyone know of such a function?
I suspect I may have to write my own code to determine the earliest presence of any of a variable number of substrings, and return its offset.
Unless any of you guys know better.....