Lasso Soft Inc. > Home

[RegExp->ReplacePattern]

[RegExp->ReplacePattern] returns the stored replacement pattern. If called with a parameter then that value is compiled and stored as the new replacement pattern. The replacement pattern can be set with this tag, when the regular expression object is created with [RegExp], or when calling the [RegExp->ReplaceAll], [RegExp->ReplaceFirst], or [RegExp->Split] tags.

The default replacement pattern is empty.

  • Syntax
  • Parameters
[Var: 'myRegExp' = (RegExp: -Find='(\\w)(\\w+)', -Replace='\\0', -Input='The quick brown fox', -IgnoreCase)]
[$myRegexp->FindPattern]
[$myRegexp->GroupCount]
[$myRegexp->ReplacePattern]
[$myRegexp->Input]
[$myRegexp->IgnoreCase]
Optional Parameters
Replacement Pattern Sets the replacement pattern to the specified regular expression.
Examples

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

Tag Link [RegExp->ReplacePattern] Category String
Type Member Data Source Any
Support Preferred Version 8.5
Output Type String 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