I have to verify if my string contains a substring followed by a regex.
Lets say the string looks like: "Abcd 03:02:01"
How can i verify that the string contains the substring "Abcd"
and the regex for "03:02:01"
.
I am using jscript in TC9.
I tried using find
for the Substring and checked regex using Test
.This involves checking the input string twice in If loops.
But is there any other way to do this?
Thanks