Like() function used for Pattern-Matching in Code:
Return to List
' For instance, let's take assume the string below is selected text:
@ciSmith v. Barney, 21 A2d 459, 35 ME2d 256 (1985)@ec
' The following comparisons will result in True or False results as indicated: Result = Selection.Text Like "*F2d*"' (Result would be False) Result = Selection.Text Like "*A2d*"' (Result would be True) Result = Selection.Text Like "@ci*@ec"' (Result would be True)
' One glitch is that is doesn't recognized "[0-9]@" whereas it will recognize particular occurrences of the character class. "[0-9][0-9][0-9]"