Test, validate and match regular expressions
This regex matches double quotes, single quotes, pipe characters (|), and square brackets ([ and ]). It's commonly used with a replace function to strip these characters from text, such as removing bracketed notation from data exports or sanitizing strings. The global flag ensures all occurrences are matched, while the multiline flag processes text across multiple lines.