Lasso Soft Inc. > Home

[RegExp->GroupCount]

[RegExp->GroupCount] returns the number of groups which are specified in the current find pattern. Groups are specified using parentheses () within the find pattern and can be referenced using \\1, \\2, etc. within the replacement pattern or using the [RegExp->MatchString] or [RegExp->MatchPosition] tags.

  • 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]
Examples

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

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