I think that instead of `['|"]` you either want `('|")` or `['"]`. The square brackets match a single character out of the list of provided characters. So `['|"]` would match the `|` character as well as `'` and `"`.