Is there an easy way to remove all chars before a “_”? For example, change 3.04_somename.jpg to somename.jpg.
Any suggestions for where to learn to write regex would be great too. Most places I check are hard to learn from.
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.
will match all text up to the first underscore. Replace that with the empty string.
For example, in C#:
For learning regexes, take a look at http://www.regular-expressions.info