Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
"value": "Health::Health::(?i)(?=.+shield)
/
gm

Description

Move all shield-related functions into a new behavior called "Shield". For example:

BEFORE: "value": "Health::Health::IsDamageCooldownActive" "value": "Health::Health::RegenShieldWhenZero"

AFTER: "value": "Health::Health::IsDamageCooldownActive" "value": "Health::Shield::RegenShieldWhenZero"

Submitted by Victris Games - 2 years ago