I need a regex that allows me to use all characters except |
. I need this for a text input in a flutter app. Here I want to make sure that this character is not present in the text. The widget in which I use this looks like this.
TextField(
inputFormatters: [
FilteringTextInputFormatter.allow(
RegExp(>>regex here<<)),
],
maxLength: 20,
controller: titleEditingController,
decoration: const InputDecoration(
hintText: 'Title',
label: Text("Title"),
),
),