skip to main content
Advanced Customizations, Overrides, and Extensions » ePublisher Platform XSLT Extensions » StringUtilities » string ReplaceWithExpression (string input, string searchExpressionAsString, string replacement)
string ReplaceWithExpression (string input, string searchExpressionAsString, string replacement)
 
Replace all occurrences of 'searchExpressionAsString' in 'input' with 'replacement'.
Parameters:
input
The input.
searchExpressionAsString
The search expression as string.
replacement
The replacement.
Returns:
String.
Replace runs of 3-4 "a"s with ". ".
<xsl:value-of select="wwstring:ReplaceWithExpression('The end of aa sentenceaaaaalways leaves me sad.', 'a{3-4}', '. ')" />
Was this helpful?
Last modified date: 10/14/2020