Skip to content

substringAfterLast

substringAfterLast(string, delimiter) → string · String

Return the part of a string after the LAST occurrence of a delimiter.

  • string (required): the source string

  • delimiter (required): the delimiter to search for

utlx
substringAfterLast("a.b.c.d", ".")       // "d"
substringAfterLast("/usr/local/bin", "/") // "bin"

Released under AGPL-3.0.