// Example
YourStr.substr(YourStr.length() - 1)
// Syntax
std::string YourStr = "abcdef";
std::cout << YourStr.substr(YourStr.length() - 1) << "
"; // OUTPUT: f
auto find_char = 'a'
size_t last_occurence_index = str.find_last_of(find_char);
String[strlen(String) - 1];
//Example
string str = "sdfsd34";
//Find the first first number and then all the number after
str.substr(str.find_first_of("0123456789"))
//Find the last number
size_t last_index = str.find_last_not_of("0123456789");
string result = str.substr(last_index + 1);