Test, validate and match regular expressions
This regex matches the word 'stone' followed by optional spaces and a 'variant=' parameter, capturing the assigned non-whitespace value. It is useful for parsing command-line arguments, configuration strings, or logs where a base command ('stone') has a variant option. The 'g' flag finds all occurrences, and 'i' makes it case-insensitive.