MusicBrainz Picard
v2.4.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
  • There is no coverart
  • Tags are not updated or saved
  • Files are not being saved
  • Picard just stopped working

Appendices

  • Appendix A: Plugins API
  • Appendix B: Tag Mapping
  • Appendix C: Command Line Options
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
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
2.13
stable
latest
Select Language
English
Française
Downloads
PDF File
epub File
HTML Files
Tag Map Spreadsheet