Name
fn:replace
Synopsis
This function replaces all occurrences of one substring in a string with another substring and returns the resulting string.
Syntax
String: fn:replace(string
,before
,
after
)
Parameters
Parameter name |
Java type |
Description |
string |
String |
The string to convert. |
before |
String |
The substring to replace. |
after |
String |
The substring to replace with. |
Example
${fn:replace(descr, 'ASP', 'JSP')}
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.