Checks if a pattern exists in a searched string.
import {StringBuilder} from "nativescript-stringformat";
// (false)
new StringBuilder("Marcel Peter Kloubert")
.test(/(Joachim)/i);
// (true)
new StringBuilder("marcel JOACHIM kloubert")
.test(/(joachim)/i);