[RegExp->FindPattern] returns the stored find pattern. If called with a parameter then that value is compiled and stored as the new find pattern. The find 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.
[Var: 'myRegExp' = (RegExp: -Find='(\\w)(\\w+)', -Replace='\\0', -Input='The quick brown fox', -IgnoreCase)]
[$myRegexp->FindPattern]
[$myRegexp->GroupCount]
[$myRegexp->ReplacePattern]
[$myRegexp->Input]
[$myRegexp->IgnoreCase]
See the Lasso 8 Language Guide for examples of how to use this tag.
Tag Link | [RegExp->FindPattern] | 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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft