Lasso Soft Inc. > Home

[RegExp->AppendReplacement]

[RegExp->AppendReplacement] appends a replacement string onto the output string during an interactive search/replace operation. The replacement string is usually generated using the values returned by [RegExp->MatchString]. See the description of the [RegExp->Find] tag for details about how to use this tag.

  • Syntax
  • Parameters
[Var: 'myRegExp' = (RegExp: -Find='(\\w)(\\w+)')]
[$myRegexp->(Input: 'the lazy dog')]
[While: $myRegExp->Find]
  [Var: 'myReplacement' = (String_Uppercase: $MyRegExp->(MatchString: 1))]
  [$myRegExp->(AppendReplacement: $myReplacement)]
  [$myRegExp->(AppendReplacement: $MyRegExp->(MatchString: 2))]
[/While]
[$myRegExp->AppendTail]
[$myRegExp->Output]
Required Parameters
Replacement String The string data to append to the output string.
Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Tag Link [RegExp->AppendReplacement] Category String
Type Member Data Source Any
Support Preferred Version 8.5
Output Type None Security None
Implementation Sets Lasso 8.5

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft