Arma 3 Scripting

BIS_fnc_filterString

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Removes characters from a string based on the list of allowed characters.

Syntax

[text, allowedChars] call BIS_fnc_filterString

Parameters:

Returns: String - filtered text with only the allowed characters supplied in the filter.

Examples

Example 1

["Player 1 @%!@$"] call BIS_fnc_filterString; // returns "Player1"

Example 2

["Player 1", "aelrPy"] call BIS_fnc_filterString; // returns "Player"

See also

find · BIS_fnc_inString · splitString · joinString