?repeats the group contents below at most once:
Comment: Non-capturing group for the attribute
the literal ↵ (1010 / 128 / A16)
\[the literal [ (9110 / 1338 / 5B16)
Comment: Start of an attribute
the literal ↵ (1010 / 128 / A16)
Negated Character Class[^\]']* *matches any number of characters outside the set below:
\]the literal ] (9310 / 1358 / 5D16)
'the literal ' (3910 / 478 / 2716)
Comment: Anything but end of attribute or start of string
the literal ↵ (1010 / 128 / A16)
Non-Capturing Group(?:(?# non-capturing group for string)
'(?# string start)
[^']*(?# anything inside the string, except end of string)
'(?# string end)
) Comment: non-capturing group for string
Comment: string start
the literal ↵ (1010 / 128 / A16)
Negated Character Class[^']* *matches any number of characters outside the set below:
'the literal ' (3910 / 478 / 2716)
Comment: anything inside the string, except end of string
Comment: string end
the literal ↵ (1010 / 128 / A16)
Comment: end of string group
the literal ↵ (1010 / 128 / A16)
\]the literal ] (9310 / 1358 / 5D16)
Comment: end of attribute
the literal ↵ (1010 / 128 / A16)