[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-13 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"]]