Page tree


Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added description of the "string.replace()" function.

...

Code Block
languagexml
<label>#(string.trim(#time))</label>
<label>#(string.trim(#time,'1234567890'))</label>


string.replace( string, fromSubstring, toSubstring )

[Since 1.22]

This function returns string with all occurrences of the substring fromSubstring changed to the substring toSubstring.  Examples:

Code Block
languagexml
<label>#(string.replace(#TV.RecordedTV.Time,' - ','-'))</label>
<label>#(string.replace(#mpei.updates,'.::.','\r'))</label>


string.length( string )

[Since 1.19]

...