RegEx Matches
Description
Find matches (occurrences) of a RegEx pattern in a string.
This snippet requires the addon skript-reflect to function.
Snippet
Applications
I want to find out what mob is being summoned in a summon command. I will use the following pattern to retrieve the mob that was summoned: /summon (.+?)\s?
. The summoned mob is stored in group 1.
The output would be minecraft:ender_dragon
.
Last updated