A pattern like this ships in real projects every day: ^(? \[(? :[A-Za-z0-9_.

Source: [Dev.to](https://dev.to/fu_fu_dfbec863ed6c21e3/making-legacy-regexes-readable-without-changing-what-they-match-4l4l)

Sponsored