title
Products            Buy            Support Forum            Professional            About            Codec Central
 

How to eliminate "The" from a string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mike48
    dBpoweramp Enthusiast

    • Sep 2012
    • 59

    How to eliminate "The" from a string

    Is there a function that can remove a leading "The " from a string (e.g., from [artist] or [album artist]), but only if "The" is present? I have played around a little, but haven't figured it out.

    I use the following to name files:

    [album artist]\[album]\[IFMULTI][disc]-[][track] [title]

    and would like to drop "The" in the directory names when the album artist is, say "The Beatles".

    Thanks!
  • Spoon
    Administrator
    • Apr 2002
    • 44509

    #2
    Re: How to eliminate "The" from a string

    In CD Ripper in Options >> Metadata & ID Tags >> 'Replace The Artist with Artist, The'
    Spoon
    www.dbpoweramp.com

    Comment

    • Mike48
      dBpoweramp Enthusiast

      • Sep 2012
      • 59

      #3
      Re: How to eliminate "The" from a string

      Spoon, Thanks for the reply -- but I'm not sure you answered my question. Either I wasn't clear, you weren't, or there was a mismatch.

      I don't want to move "The" to the end . . . I want to axe it ONLY from the generated file path. I could do this in several programming languages, but I haven't figured out if it's possible with the dBpa string functions.

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 44509

        #4
        Re: How to eliminate "The" from a string

        Try [IFEQUALS]artist,The [DEL]1,4,[artist][],[TRIM][DEL]1,4,[artist][], The[][]
        Spoon
        www.dbpoweramp.com

        Comment

        • Mike48
          dBpoweramp Enthusiast

          • Sep 2012
          • 59

          #5
          Re: How to eliminate "The" from a string

          Originally posted by Spoon
          Try [IFEQUALS]artist,The [DEL]1,4,[artist][],[TRIM][DEL]1,4,[artist][], The[][]
          Thanks! I will give it a try.

          Comment

          Working...

          ]]>