filter chars(a,b,c)


Removes or replaces characters in a that are not part of a given string. The allowed characters are given as regular expression b. Every character in a is checked against the regular expression. If it not fits and c is not empty, it will be replaced by c, otherwise, it will be removed.

Description of Parameters

Parameter

Description

a

Value.

b

Regular expression.

c

Replacement character.

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: 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, as well as an empty parameter c.