SMATCH_TO Function
Syntax
Output_String as C = SMATCH_TO(C string_1,C pattern)
Arguments
- string_1
The character string to examine for an occurrence of input string.
- pattern
A character string.
Description
Returns the matched portion of a string.
Discussion
SMATCH_TO() returns everything to the left of and including the matched portion of a string.
Example
dim st as C st = "Alpha Software" smatch_to(st, "*Soft*") -> "Alpha Soft" smatch_to(st, "*Soft? ") -> "Alpha Softw" smatch_to(st, "*Software*") -> "Alpha Software"
See Also