--- title: "filter chars()" slug: "string-filter-chars" updated: 2026-08-17T07:39:52Z published: 2026-08-17T07:39:52Z canonical: "docs.lobstersoftware.com/string-filter-chars" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # filter chars() Each character in text **a** is checked to see if it matches the regular expression **b**. If it does, it is retained. If not, it is replaced by text **c** or, if **c** is empty, it is removed. ## Parameters | Parameter | Description | | --- | --- | | a | Text | | b | Regular expression | | c | Replacement text | ## Examples | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | 80336 München | [0-9A-Z] | . | 80336.M...... | | 80336 München | [0-9A-Z] | | 80336M | | 80336 München | [0-9A-z] | | 80336Mnchen | | 80336 München | [^ü] | ue | 80336 Muenchen | > [!NOTE] > **NOTE:** > > In order to remove all characters that do not belong to a Base64 block, this function can be used with the regular expression [A-Za-z0-9+/=] in parameter **b** and an empty parameter **c**.