I have string like this
This is ~test content ~ok ~fine.
I want to get "fine" which is after special character ~ and on last position in string using jQuery.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use combination of [substring()][1] and [lastIndexOf()][2] to get the last element.
You can use [split()][4] to convert the string to array and get the element at last index, last index is
length of array - 1as array is zero based index.OR, simply call pop on array got after split