I’m using this Windows application to batch rename a bunch of images. The application supports Regex, so I’m looking for an expression that will match everything (letters, numbers, hyphens, anything) before my file extension.
Thanks!
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.
Not quite enough information given in the question, but this is probably what you want:
The first capture group will contain your file’s basename and the second capture group will contain the extension, including the ‘.’ character, if it exists.
You can reference the two capture groups in the ‘Replace’ section with
$1and$2.