MusicBrainz Picard
v2.6.4

About Picard

  • Introduction
  • Contributing to the Project
  • Acknowledgements
  • Glossary of Terms

Getting Started

  • Download & Install Picard
  • Main Screen
  • Status Icons
  • Configuration
  • Tags & Variables
  • Scripting
  • Scripting Functions
    • Assignment Functions
    • Text Functions
      • $delprefix
      • $find
      • $firstalphachar
      • $firstwords
      • $get
      • $initials
      • $left
      • $len
      • $lower
      • $num
      • $pad
      • $replace
      • $reverse
      • $right
      • $rreplace
      • $rsearch
      • $strip
      • $substr
      • $swapprefix
      • $title
      • $trim
      • $truncate
      • $upper
    • Multi-Value Functions
    • Mathematical Functions
    • Conditional Functions
    • Information Functions
    • Loop Functions
    • Miscellaneous Functions

Using Picard

  • General Usage
  • Other Picard Tasks
  • Extending Picard
  • Frequently Asked Questions

Workflow Recommendations

  • General Recommendations
  • When the CD is available
  • When files are grouped by album
  • When files are not grouped but have some metadata
  • When files are not grouped and have little or no existing metadata

Troubleshooting

  • General Troubleshooting
  • Picard won’t start
  • There is no coverart
  • Tags are not updated or saved
  • Files are not being saved
  • Picard just stopped working
  • macOS shows the app is damaged

Tutorials

  • Writing a File Naming Script
  • Understanding Acoustic Fingerprinting and AcoustIDs
  • Handling of multiple release countries
  • Writing a Plugin
  • Loading releases with MusicBrainz for Android

Appendices

  • Appendix A: Plugins API
  • Appendix B: Tag Mapping
  • Appendix C: Command Line Options
  • Appendix D: Keyboard Shortcuts

References

  • Index
MusicBrainz Picard
  • »
  • Scripting Functions »
  • $right

$right¶

Usage: $right(text,number)
Category: text

Description:

Returns the last number characters from text. If number is less than 1, then the value used is the number of characters in text plus number (e.g.: $right(abcd,0) is the same as $right(abcd,4)). If number is missing or a negative number greater than the number of characters in text, the function will return an empty string.

Example:

The following statements will return the values indicated:

$right(abcd,2)   ==>  "cd"
$right(abcd,0)   ==>  "cd"
$right(abcd,-1)  ==>  "bcd"
$right(abcd,)    ==>  ""
$right(abcd,-5)  ==>  ""
Next Previous

This MusicBrainz Picard User Guide is licensed under CC0 1.0

Built with Sphinx using a theme provided by Read the Docs.
Options en
Select Version
Select Language
English
Français
Downloads
PDF File
epub File
HTML Files
Tag Map Spreadsheet