Copy this code and paste it in your HTML
//(8)文字列内で、ある文字列を検索
str01 =@”あいうえお”;
NSRange searchResult = [str01 rangeOfString:@"うえ"];
if (searchResult.location
== NSNotFound
) {
printf(”見つかりません”
);
} else {
printf(”Position
: %d, Length
: %d です。\n”,
searchResult.location, searchResult.length
);
}