Show/Hide Toolbars

 PhraseExpander 5 Manual

Navigation: Designing templates > Macros > Text

Replace text

Scroll Prev Top Next More

The Replace text macro allows you to search for a piece of text and replace it with other content.

 

Syntax

 

{#replace text -[find][replace][matchCase]#}

 

text: the text where the search & replace operation is performed

[find]: the text to find (use #TAB# for tab characters or #NL# for new line characters)

[replace]: the replacement text (use #TAB# for tab characters or #NL# for new line characters)

[matchCase]: it tells if the replace is case sensitive ('word' is different from 'Word')

 

Example

Template:

{#replace Good morning. -[find=morning][replace=evening][matchCase=1]#}

 

Result:

Good evening

Created with Help & Manual 7 and styled with Premium Pack Version 3 © by EC Software