Regular expression
A regular expression, or regex, is a pattern for finding or testing text. Its syntax can describe alternatives, repetition and groups, making it more expressive than a literal string or filename wildcard. For example, [0-9]+ matches a run of decimal digits. Apple's NSRegularExpression documentation
BetterDisplay uses these patterns in Control Integration to extract readback values or recognize Boolean (true/false) results. Start with the response the device actually returns, then use a pattern that selects the part you need.
A pattern does not change the remote device's response. Script quoting and regex syntax follow different rules. Check that the command produces the expected response before adjusting the pattern. The integration page explains which match is used and what happens if the result cannot be parsed.