Hi I need a Regex that can actually get any letter that is inserted after “-” dash e.g i have a string that says
"UpTown-R" , "Category-C"
What I get in return is “R” , “C”.
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.
If is always the last part of the string, you can do this
see it here on Regexr
[^-]is a character class that matches everything that is not a dash+quantifier means one or more of the preceding element$anchor for the end of the string