Hello.
I hope I'm posting this in the right place.
Is it possible to base a Regex on the last occurrence of - instead of the first?
I have this based on the first one, but I lack the knowledge of how to change it to the last.
Match: (.+?)(- .+)
Replace: \2
This is an example of file-names:
A Christmas Carol_ Hetalia - Axis Powers - CanadasOpposite - A Hetalia Christmas Carol
I would like it changed to
CanadasOpposite - A Hetalia Christmas Carol
But I have other files in the same folder which also needs batch name like the following
A Christmas Story - BlackFireDragonStar - Merry Christmas Hotel Transylvania_
That only needs the first bit deleted like:
BlackFireDragonStar - Merry Christmas Hotel Transylvania_
which is why the first Regex doesn't quite work and I'm looking for something able to read from right to left instead.
I hope this all made sense and thanks in advance for the help.