Zoomed Image

AMSX Scripting Language - Command : findstringfrommarkers

Summary

Extract a value from a string using search and boundary markers

Description

Locates a search term in the source string, skips a number of characters, then extracts the text between a start marker and an end marker. Useful for parsing structured text such as JSON key-value pairs. Supports $comma$, $quote$, and $squote$ as special marker aliases.

Parameters

ParameterDescription
cmdSource string to search within
Argument 0Substring to locate in the source
Argument 1Number of characters to skip after the search term before looking for the start marker
Argument 2Start marker character (e.g. a quote or $quote$)
Argument 3End marker character (e.g. a quote or $quote$)

Syntax


FindStringFromMarkers "Source string to search within", "Substring to locate in the source", "Number of characters to skip after the search term before looking for the start marker", "Start marker character (e.g. a quote or $quote$)", "End marker character (e.g. a quote or $quote$)"

Return to the AMSX Command Reference