delimiter.on_missing if s is null/undefined or if the delimiter cannot be found.substringAfter("path/to/file.txt", '/'); // "to/file.txt"
substringAfter("abc123", /\d+/); // ''
substringAfter("abc123xyz", /\d+/); // "xyz"
substringAfter(undefined, ':'); // null
substringAfter("no-needle", ':'); // null
substringAfter("no-needle", ':', 'default'); // 'default'
substringAfter(null, ':', ''); // ''
Returns the substring after the first occurrence of the delimiter.
delimiter.on_missing if s is null/undefined or if the delimiter cannot be found.substringAfter("path/to/file.txt", '/'); // "to/file.txt"
substringAfter("abc123", /\d+/); // ''
substringAfter("abc123xyz", /\d+/); // "xyz"
substringAfter(undefined, ':'); // null
substringAfter("no-needle", ':'); // null
substringAfter("no-needle", ':', 'default'); // 'default'
substringAfter(null, ':', ''); // ''
Returns the substring after the first occurrence of the delimiter.