Name

fn:substringAfter

Synopsis

This function extracts the part of a string that follows a substring and returns it.

Syntax

String: fn:substringAfter(string, substring)

Parameters

Parameter name

Java type

Description

string
String

The string to extract from.

substring
String

The substring to look for.

Example

${fn:substringAfter('Writing appendixes is no fun', 'no')}

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.