This example returns result
= X in this phrase.
set s1 = "The findPattern() operation finds the X in this phrase."
set result = s1.findPattern("X.+");
This example throws an error as there is no X in the string at all.
set s1 = "The findPattern() operation won't find the pattern."
set result = s1.findPattern("X.+");