Back to API Reference
Class

StringParseRule

sealed

Matches literal string patterns and optionally replaces them.

Remarks

Useful for custom shortcodes, emoji aliases, or text substitutions. Example: pattern ":)" with replacement "😊".
public int TryMatch()
public string[] patterns

String patterns to match (case-sensitive).

public bool hasReplacement

Whether to replace matched patterns with a custom string.

public string replacement

Replacement string (used when hasReplacement is true).