{"name":"BIS_fnc_filterString","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Removes characters from a string based on the list of allowed characters.","syntaxes":[{"syntax":"[text, allowedChars] call BIS_fnc_filterString","since":null,"effect":null,"exec":null,"params":[{"name":"text","type":": String","optional":false,"default":null,"description":"text to filter","types":["String"],"since":null,"text":"**text:**: String - text to filter"},{"name":"allowedChars","type":"String","optional":true,"default":"a..z, A..Z, 0..9, \"_\"","description":"allowed characters","types":["String"],"since":null,"text":"**allowedChars**: String - (Optional, default a..z, A..Z, 0..9, \"_\") allowed characters"}],"returns":{"type":"String","types":["String"],"description":"filtered text with only the allowed characters supplied in the filter.","text":"String - filtered text with only the allowed characters supplied in the filter."}}],"examples":[{"text":"```sqf\n[\"Player 1 @%!@$\"] call BIS_fnc_filterString; // returns \"Player1\"\n```","code":["[\"Player 1 @%!@$\"] call BIS_fnc_filterString; // returns \"Player1\""]},{"text":"```sqf\n[\"Player 1\", \"aelrPy\"] call BIS_fnc_filterString; // returns \"Player\"\n```","code":["[\"Player 1\", \"aelrPy\"] call BIS_fnc_filterString; // returns \"Player\""]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["find","BIS_fnc_inString","splitString","joinString"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Strings","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}