Test, validate and match regular expressions
Matches lines beginning with a forward slash (such as Minecraft commands like /give or /tp) and captures the full command text into a named group 'Command'. Indented continuation lines starting with a tab or spaces are also consumed, so multi-line commands are matched as a single unit. With global and multiline flags enabled, it extracts all slash commands from a document—useful for parsing command lists, configs, or documentation.