[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-26 UTC"],[[["`rindex()` searches a string for the last occurrence of a specified substring and returns the starting index of the match."],["If the substring is not found, `rindex()` returns -1."],["The function operates on an input string (`target`) and takes the substring to search for (`pattern`) as an argument."],["It returns the index (an integer) of the last occurrence of the pattern within the target string."]]],["The `rindex` function searches a target string for the last occurrence of a specified substring (`pattern`). It returns an integer representing the index of the first character of the last match, or -1 if the substring is not found. If the pattern is an empty string, it returns the length of the string. The function is used as `String.rindex(pattern)`. Examples show it working on various substrings with JavaScript and Python.\n"]]