Smartsite SXML CopyCode image Copy Code
{string.trimleftright("It's a beautiful day", 'it', 'day')} => It's a beautiful
{string.trimleftright("It's a beautiful day", 'it', 'day', false)} => 's a beautiful
{string.trimleftright("It's a beautiful day", "it's", '', false)} =>  a beautiful day
{string.trimleftright("It's a beautiful day", '', 'DAY', false)} => It's a beautiful
Example Result CopyCode image Copy Code
It's a beautiful  => It's a beautiful
's a beautiful  => 's a beautiful
 a beautiful day =>  a beautiful day
It's a beautiful  => It's a beautiful
SXML