{"name":"BIS_fnc_filterString","title":"BIS fnc filterString","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_filterString","revid":327982,"updated":"2022-07-13T15:22:00Z","groups":["Strings"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Removes characters from a string based on the list of allowed characters.","syntaxes":[{"syntax":"[text, allowedChars] call BIS_fnc_filterString","params":[{"name":"text","type":": String","description":"text to filter","type_expr":"String","text":"**text:**: String - text to filter"},{"name":"allowedChars","type":"String","optional":true,"default":"a..z, A..Z, 0..9, \"_\"","description":"allowed characters","type_expr":"String","text":"**allowedChars**: String - (Optional, default a..z, A..Z, 0..9, \"_\") allowed characters"}],"returns":{"type":"String","type_expr":"String","description":"filtered text with only the allowed characters supplied in the filter."}}],"examples":[{"code":["[\"Player 1 @%!@$\"] call BIS_fnc_filterString; // returns \"Player1\""]},{"code":["[\"Player 1\", \"aelrPy\"] call BIS_fnc_filterString; // returns \"Player\""]}],"see_also":["find","BIS_fnc_inString","splitString","joinString"]}