Lasso Soft Inc. > Home

[RegExp->Reset]

[RegExp->Reset] resets the state of the [RegExp->Find] tag (and related tags), moves the current output string over to the input, and resets the output to empty. Any subsequent search/replace operations will operate on the result of the previous search/replace operation.

  • 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]
[$myRegExp->Reset]
Examples

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

Tag Link [RegExp->Reset] 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