Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Square Box CatDV Search and Replace regex

  • Search and Replace regex

    Posted by John Heagy on March 25, 2013 at 4:24 pm

    I’d like to copy the Name field into the Tape field but limit the character length to 6.

    Can I use “Name” as a variable in the Replace field and use a regex expression to limit the length? If so How do I enter “Name” as a variable?

    This would be easy to do in Bulk edit if it had basic truncate ability.

    Thanks
    John

    John Heagy replied 13 years, 1 month ago 2 Members · 4 Replies
  • 4 Replies
  • John Heagy

    March 25, 2013 at 5:28 pm

    I could not get Find and Replace to recognize any variables.

    I was able to do what I wanted by first using Bulk Edit to copy the entire Name into Tape and then apply the following regex to truncate down to 6 digits:

    Search for: ^(……).*

    Replace with: 1

  • John Heagy

    March 25, 2013 at 5:55 pm

    [John Heagy] “Search for: ^(……).*

    Replace with: 1

    The forum removed the backslash before the 1.

    Replace with : (backslash)1

  • Bryson Jones

    March 25, 2013 at 7:25 pm

    Do you want the first 6 characters or the last?

    bryson

    bryson “at” northshoreautomation.com

    northshoreautomation.com

  • John Heagy

    March 25, 2013 at 8:34 pm

    Hi Bryson,

    First 6

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy