Lasso Soft Inc. > Home

[ string->eachMatch ]

Method

[string->eachMatch] permits a query expression to be executed on the result of matches from the regular expression performed on the string.

  • Syntax
with Local in 'String Value'->eachMatch(Regular Expression) Query Expression
Examples
  • Beginner

To run a query expression on the result of matches from the regular expression performed on a string:

Use the [string->eachMatch] method. The following example takes a string, creates matches using regular expressions, and sorts the results in reverse alphabetical order.

Code

with r in 'Resistance is futile.'->eachMatch(regexp('(?i).t.')) order by #r descending select #r

Result

uti, sta

Recent Comments

No Comments found

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