Persistate API documentation
MatchPosition Method (input, pattern)
NamespacesPersistateUtlMatchPosition(String, String)

[This is preliminary documentation and is subject to change.]

Matches a pattern against a string, and returns the position of the part of this string corresponding to a placeholder.
Declaration Syntax
C#
public static int MatchPosition(
	string input,
	string pattern
)
Parameters
input (String)
The input string to be searched for the pattern.
pattern (String)
The pattern to be searched for in the input string.
Return Value
The position of the part of the input string matching the first ^^ placeholder in the pattern. If there is no match, -1 is returned.
Remarks

This is a simple version of a regular expression style match. It can include the following markers in the pattern:

..
This will match zero or more characters, excluding \n.
^^
This will match one or more characters, excluding \n. The position in the input string matching the first of these will be returned.
space
Every space in the pattern will match one or more whitespace characters in the input string.
>|
This matches the end of the input string, or any amount of whitespace followed by the end of the input string

Apart from these elements, the pattern should be formatted as for .NET regular expressions, with appropriate escapes. Matching is case insensitive.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)