Parse

The Parse function in the FireflyAIO Lua API is used to extract a substring from a given string based on specified delimiters. By providing a string and two delimiters, you can retrieve the portion of the string that lies between them.

Here is an example of how to use the Parse function:

-- Extract the substring between the delimiters
local result = Parse("Hello, World!", "Hello,", "!")

In this example, the function call Parse("Hello, World!", "Hello,", "!") will return "World". The delimiters "Hello," and "!" define the start and end points of the substring to be extracted.

Using the Parse function in this way allows you to easily extract relevant portions of strings for further processing within your custom checkers in FireflyAIO.

Last updated