substringBetween

Returns the substring after the first occurrence of start and before the next occurrence of end, or null when either delimiter is missing.

An empty start matches at the beginning of the string, and an empty end matches immediately after start, producing an empty result.