Regular Expressions 101

Community Patterns

Message Decrypter Softuni Final Exam (2019-08-03)

0

Regular Expression
PCRE (PHP <7.3)

/
@(?<planet>[A-Z,a-z]+)(?:[^@\-!:]+)?:(?<population>[\d]+)(?:[^@\-!:]+)?!(?<type>[A|D])!(?:[^@\-!:]+)?->(?<soldiers>[\d]+)
/
gm

Description

no description available

Submitted by anonymous - 4 years ago