How to detect these issues for my checklist (Regex):

How to detect these issues for my checklist (Regex):

  • Space before ending brackets “), ], }, >”
  • Space After starting brackets “(, [, {, <”

Hello!
I am not an expert in Regex, but what I know is that for space we have to use [:space:] and before any sign we have to use a “\”. For example, you should use: “[:space:]\)” to find a space before an ending parenthesis; “[:space:]\]” to find a space before an ending bracket, and so forth. And to find a space after a starting curly bracket, you use “\{[:space:]”, and so on. Maybe there is other simple way to do it, but that’s what I use in my checklists.

Best regards,
Sílvia