C
CES
All,
Sorry for the 101 question but I was wondering if their was an easer way to test for a specific substring within a string .
I know I could split the string into an array ie:
var str = “this is a string”;
str.split(" is a ");
And then test if the array[1] that is produced is null but I was just wondering if their was a easier way of doing this. Thanks in advance - CES
Sorry for the 101 question but I was wondering if their was an easer way to test for a specific substring within a string .
I know I could split the string into an array ie:
var str = “this is a string”;
str.split(" is a ");
And then test if the array[1] that is produced is null but I was just wondering if their was a easier way of doing this. Thanks in advance - CES