itsfullofstars wrote:FROM:
GG-1234.png
GG1234-hi.png
TO:
GG1234.png
GG1234-hi.png
Try this with copies of your files:
- Code: Select all
RegEx(1)
Match: ^(..)-(.+)
Repla: \1\2
Explanation:
^ => Be sure to start regex at start of string
(..) => match two of any signs, store them in backreferencing group 1
- => match an literal dash
(.+) => match one-ore-more of any sign till the end, store in group 2
\1 => replace with what is matched with first expression and stored in group 1
\2 => give back what is stored in group 2
If there is no dash at third position, the regex will not match and so nothing will be changed.