Test, validate and match regular expressions
This regular expression matches the value in a key-value pair, specifically capturing text that immediately follows an equals sign. It leverages a conditional statement to support both quoted values (requiring matching single or double quotes) and unquoted values that end with a space. This pattern is particularly useful for parsing configuration files, environment variables, or custom data formats where values might be optionally quoted.