Skip to content

strSafeMatch

Ben edited this page Aug 16, 2022 · 1 revision

Match a string to a pattern in an error-safe way

TRP3_API.utils.str.safeMatch(text, pattern)

Arguments

  • text: string
  • pattern: a pattern

Returns

  • trace if string matches, else nil
Clone this wiki locally