|
Avid Pro Audio CommunityHow to Join & Post • Community Terms of Use • Help Us Help YouKnowledge Base Search • Community Search • Learn & Support |
#1
|
|||
|
|||
RegEx-guru question
Hi,
anyone know a RegEx code that can move X amount of characters from the head of a clip or track name to the end of a given name? So to to turn this HELLO_somemorestuffhere_123 into somemorestuffhere_123_HELLO for all selected tracks or clips? That said all the characters after HELLO can have all sorts of different forms and length but HELLO_ is always the same. And I only want this to happen to the names that start with "HELLO_". Otherwise I could have simply used the find/replace and add suffix fields I guess... Thanks Frank.
__________________
PTHDn 2024.3 (OSX13.6.5), 8x8x8, MacPro 14,8, AJA LHi, SYNC HD, all genlocked via AJA GEN10, 64GB RAM, Xilica Neutrino, Meyersound Acheron Last edited by Frank Kruse; 04-24-2018 at 07:25 AM. |
#2
|
|||
|
|||
Re: RegEx-guru question
Quote:
Thanks Frank
__________________
PTHDn 2024.3 (OSX13.6.5), 8x8x8, MacPro 14,8, AJA LHi, SYNC HD, all genlocked via AJA GEN10, 64GB RAM, Xilica Neutrino, Meyersound Acheron Last edited by Frank Kruse; 04-24-2018 at 07:27 AM. |
#3
|
|||
|
|||
Re: RegEx-guru question
I’m no guru but this should get you there if you do a find all HELLO first for clips and tracks.
You can do it in Reg-ex but I’m not sure of the Command. FIND should be ((\w+)_(\w+)_(\w+)) REPLACE should be. \3, \4, \5, \2, \1 You might need to play with TRIM or REPLACE to get what you want. Make sure to checkbox Regular Expressions. |
#4
|
|||
|
|||
Re: RegEx-guru question
Awesome thanks, will try...
Actually your hint about find the "HELLO_" clips first already pointed me to the solution even without RegEx. How could I not see that... What I did: Find "HELLO_" by name Select all in the clip list. Then Trim head by 6 characters and add suffix "_HELLO" Done. Thanks so much! Frank.
__________________
PTHDn 2024.3 (OSX13.6.5), 8x8x8, MacPro 14,8, AJA LHi, SYNC HD, all genlocked via AJA GEN10, 64GB RAM, Xilica Neutrino, Meyersound Acheron |
#5
|
|||
|
|||
Re: RegEx-guru question
Great! That works too and it doesn’t give you a headache.
|
#6
|
|||
|
|||
Re: RegEx-guru question
FWIW - you could do all of this pretty easily with Keyboard Maestro, including asking for the search field and then automatically finding, stripping, and pasting.
__________________
http://www.richbreen.com ---------------------------------------- Mac Studio / Ventura, PT 2023.12.HDX, Avid HD I/Os and Metric Halo ULN8, 3xS1/Dock Also running a Mac Studio Ultra / Ventura / HDX / MTRX / S6 |
#7
|
||||
|
||||
Re: RegEx-guru question
A Better Finder Rename lets you move phrases to anywhere else in the name. It's a great flow and very powerful.
ABetterFinderRename
__________________
Tom Hambleton CAS Ministry of Fancy Noises IMDb Undertone on Facebook Undertone Custom Sound Libraries "Groupable markers would be epochal!" -Starcrash Last edited by minister; 04-24-2018 at 08:58 AM. |
#8
|
|||
|
|||
Re: RegEx-guru question
Quote:
Batch rename in PT can't rename file-names anyway.
__________________
PTHDn 2024.3 (OSX13.6.5), 8x8x8, MacPro 14,8, AJA LHi, SYNC HD, all genlocked via AJA GEN10, 64GB RAM, Xilica Neutrino, Meyersound Acheron |
#9
|
|||
|
|||
Re: RegEx-guru question
Yes but PT has all that on board now in the batch rename window. Takes 1 second to process instead of key-sequencing over thousands of clips with KM.
__________________
PTHDn 2024.3 (OSX13.6.5), 8x8x8, MacPro 14,8, AJA LHi, SYNC HD, all genlocked via AJA GEN10, 64GB RAM, Xilica Neutrino, Meyersound Acheron |
#10
|
||||
|
||||
Re: RegEx-guru question
Ah. I see, you want to rename clips (or track), not files. Sorry, my bad for not reading better. I need a Better Forum READ-er. :)
__________________
Tom Hambleton CAS Ministry of Fancy Noises IMDb Undertone on Facebook Undertone Custom Sound Libraries "Groupable markers would be epochal!" -Starcrash |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question for Allen or other guru (buffer issues) | MFriendly | 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Win) | 13 | 11-14-2006 10:57 AM |
A Sync I/O question for you bored audio Guru's | Eric Heil | Pro Tools TDM Systems (Mac) | 4 | 02-17-2005 01:13 AM |
A question for a wiring guru. | IO Composer | Post - Surround - Video | 3 | 08-06-2004 04:30 PM |
Question for midi guru old timers | Donny | MIDI | 1 | 02-21-2004 06:52 PM |
A Midi question for a Guru | clarpark | Pro Tools TDM Systems (Mac) | 3 | 02-22-2003 04:10 PM |