Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted by ConfluenceCloudBulkEditor.py

...

Returns the sub-string from "string"

Scroll pagebreak

Examples

...

languagetext
// Extract some substrings

...


string $str = "This is some text";

...


string $subStr;

...


// Extract the last 9 characters

...


$subStr = `strRight $str 9`;

...


print $subStr;

...


// Should be "some text"

...


// Extract the last 17 characters

...


$subStr = `strRight $str 17`;

...


print $subStr;

...


// Should be same as $str

Additional information

Related commands

...