Regular Expressions 101

Community Patterns

Minecraft Entity Target Splitter

2

Regular Expression
PCRE (PHP <7.3)

/
(?<name>\w+)=(?<value>.+?)(?=[,\]])(?#The following text makes sure that the match isn't inside quotes, #found_on_internet )(?=([^"\\]*(\\.|"([^"\\]*\\.)*[^"\\]*"))*[^"]*$)
/
g

Description

Regex to match part of minecraft command entity targets

Submitted by aziis98 - 10 years ago