Regex to not match tab, carriage return and square brackets

regex

Solution

Try:

[^\][\t\r]

- `[]` - char class

- `^` - negation of char class.

- `\]` - escape ] as ] is a meta char inside a char class

- `[` - need not escape `[` as inside `[]` its not a meta char

- `\t` - tab

- `\r` - return carriage

Problem

I need a regex to not match tab, carriage return and square brackets. (C#)

Original source