[string->eachMatch] permits a query expression to be executed on the result of matches from the regular expression performed on the string.
with Local in 'String Value'->eachMatch(Regular Expression) Query Expression
Use the [string->eachMatch] method. The following example takes a string, creates matches using regular expressions, and sorts the results in reverse alphabetical order.
with r in 'Resistance is futile.'->eachMatch(regexp('(?i).t.')) order by #r descending select #r
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