Name
PatternFindStrShort -- parse a string using pattern matching (V6.0)
Synopsis
... = PatternFindStrShort(s$, pat$[, start, encoding])
Function
This function does the same as PatternFindStrDirect() but does not return the start and end indices. See PatternFindStrDirect for details.

The pattern specified in pat$ must adhere to the pattern syntax as described in the documentation of the PatternReplaceStr() function. See PatternReplaceStr for details.

Inputs
s$
string to parse
pat$
pattern according to which the string should be parsed
start
optional: position where search should start (defaults to 0)
encoding
optional: character encoding to use (defaults to default string encoding) (V7.0)
Results
...
individual strings with all captures
Example
DebugPrint(PatternFindStrShort("Name=Andreas", "(%w+)=(%w+)"))
The above example returns the strings next to the equal sign.

Show TOC