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: 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.