Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-923

Add $startswith and $endswith string functions

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.4
    • 1.3.2
    • Scripting
    • None

      It would be helpful for my scripts if there were python-line startswith and endswith functions.

      Use case example:

      $if($and(
                 $startswith(%album%,The Best of),
                 $endswith(%album%, %artist%)
           ),
           $set(album,$replace(%album%, %artist%,)))

      to convert "The Best of Frank Sinatra" to "The Best of".

            samj1912 Sambhav Kothari
            sophist Sophist
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                1.4