This is a question for experts on regular expressions, since it is something that I dont have much insight.
Its not C#, java specific, its a general regular expression that I need to put in one application that will rename files.
Basically I have structures of folders like this.
1 - I went to the cinema 1
I went to the cinema 1 - movie title 1
I went to the cinema 1 - movie title 2
I went to the cinema 1 - movie title 3
I went to the cinema 1 - movie title 4
2 - I went to the cinema 2
3 - I went to the cinema 3
I need an expression that pretty much returns the text after " - " because everything is before is the parent folder name.
May be a simple question but I did some search and I can't find it.
Thanks
You can use the regex -(.*)
, see live demo