Type Method
Format string. Search (/ search text / options)
Commentary
You can search using a regular expression string. The optional g (global matching), i (in English capital letters, lower
case ignored), m (in units of matched lines) can be omitted.。 Search results will return an array of strings found.You can check to see if the number of matches by examining the number of the array. 。 Otherwise returns null.
Sample code - QC 2 JavaScript
str = "Sample_sample123";
n = str.search (/ 12 / g);
outputs [0] = n;
Sample code - QC 3 JavaScript
function (__number outputNumber) main ()
{
var result = new Object();
str = "Sample_sample123";
n = str.search(/12/g);
result.outputNumber = n;
return result;
}