Lasso Soft Inc. > Home

[RegExp->MatchesStart]

[RegExp->MatchesStart] checks whether the replace pattern matches the start of the input string. The tag accepts a single parameter which is the position at which to check and returns true or false. The example code will return true since the find pattern matches the character at position 2 "o" even though it does not match the remainder of the input string.

  • Syntax
  • Parameters
[Var: 'myRegExp' = (RegExp: -Find='[aeiou]')]
[$myRegExp->(Input: 'fox')]
[$myRegExp->(MatchesStart: 2)]
Optional Parameters
Position The integer position at which to attempt a match. The regular expression must match starting from this position. Defaults to the start of the input string.
Examples

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

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