Skip to content

substring

Category: String

Returns a substring starting at the specified index, optionally with specified length

  • Return type: string
  • Parameters:
    • start integer — Zero-based starting index
    • length integer — Length of substring (optional)
'Hello World'.substring(6)
'Hello World'.substring(0, 5)
Patient.name.family.substring(1, 3)