What is easier to understand two months from now? Note that they are exactly equal in this example.
$regex = '(?n)(?<destination>(\d{1,3}\.){3}\d{1,3}).*time=(?<ms>\d+)ms'
verses
$regex = '(?xn)
# You can use in-line comments!
# ip group:
(?<destination>
(
\d{1,3}\.
){3}
\d{1,3}
)
.*
# Ping as Milliseconds
time=
(?<ms>
\d+
)
ms
'