The answer (as usual) is that it depends.
, , "this | that", find. . "OR" , , . ( ):
for( i = 0; i < stringLength; i++ ) {
if( stringAt pos i starts with "this" )
found!
if( stringAt pos i starts with "that" )
found!
}
. () .
, : ".*this.*|.*that.*" .
, , , . , , contains. , "A" "B" "g" - "m"... regex.
.