Back to API Reference
Class

StringParseRule

sealed
Inherits:ParseRule

Matches literal string patterns and optionally replaces them.

Remarks

Useful for custom shortcodes, emoji aliases, or text substitutions. Example: pattern ":)" with replacement "😊".
public string Identity{ get }
public string MarkupTriggers{ get }

Distinct first characters of the configured patterns — every match replaces text, so all of them are consuming.

public string TypingTriggers{ get }
public override int TryMatch()