Thanks, Roland!
On 30 Aug 2017, at 22:21, Roland Küffner wrote:
In BBEdit, this would be done by searching
^(.+) - (.+)
and replacing it with
\2 - \1
RegEx comes in different dialects (BBEdit’s is based on the PCRE
library
package). For example, some implementations use the $ to denote
backreferences, so you might have to try $2 - $1 as replacement
-Roland
On Wed, Aug 30, 2017 at 4:38 AM, Vlad Ghitulescu <[email protected]>
wrote:
Hello!
I have a couple of folder named like this (Artist - Title):
*** - We Wish You A Merry Christmas
Alex Clare - Damn Your Eyes
Bob Dylan - The Times They Are A Changin
Bruce Springsteen - Born In The USA
Bryan Adams - Run To You
Cat Stevens - Father and Son
Coldplay - The Scientist
Counting Crows - Mr. Jones
Crosby, Still, Nash - Right Between The Eyes
that I would like to rename in (Title - Artist):
We Wish You A Merry Christmas - ***
Damn Your Eyes - Alex Clare
The Times They Are A Changin - Bob Dylan
Born In The USA - Bruce Springsteen
Run To You - Bryan Adams
Father and Son - Cat Stevens
The Scientist - Coldplay
Mr. Jones - Counting Crows
Right Between The Eyes - Crosby, Still, Nash
I would use A Better Finder Rename, that offers a RegEx-Option in the
"*Advance
& Special*"-category:
Could you please suggest me a RegEx for this?
Thanks in advance!
Regards,
Vlad
P.S. How would you do this with AppleScript?
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google
Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it,
send an
email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.