(?i)applies the following effective flags to the remainder of the pattern: imu i modifier: insensitive. Matches without distinguishing uppercase and lowercase letters
Non-Capturing Group(?:https?:\/\/)? ?repeats the group contents below at most once:
httpthe literal text http (case insensitive) s?optionally matches the literal s (11510 / 1638 / 7316) (case insensitive)
:the literal : (5810 / 728 / 3A16)
\/the literal / (4710 / 578 / 2F16)
\/the literal / (4710 / 578 / 2F16)
Non-Capturing Group(?:www\.)? ?repeats the group contents below at most once:
wwwthe literal text www (case insensitive) \.the literal . (4610 / 568 / 2E16)
\Kresets the starting point of the reported match. Any previously consumed characters are no longer included in the final match
\S+any character that is not Unicode whitespace, repeated at least once
\.the literal . (4610 / 568 / 2E16)
\w{3}a Unicode word character, repeated exactly 3 times
\/?optionally matches the literal / (4710 / 578 / 2F16)
Negated Character Class[^\/\s,]+ +matches at least one character outside the set below:
\/the literal / (4710 / 578 / 2F16)
\sa Unicode whitespace character
,the literal , (4410 / 548 / 2C16)
Non-Capturing Group(?:[^\/]+) Negated Character Class[^\/]+ +matches at least one character outside the set below:
\/the literal / (4710 / 578 / 2F16)
i modifier: insensitive. Matches without distinguishing uppercase and lowercase letters
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
u modifier: unicode. Treats the pattern and subject as UTF-16