BIS fnc filterString: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 21: | Line 21: | ||
|x2= <code><nowiki>[</nowiki>"Player 1", "Player"] [[call]] [[BIS_fnc_filterString]]; {{cc|returns "Player"}}</code> | |x2= <code><nowiki>[</nowiki>"Player 1", "Player"] [[call]] [[BIS_fnc_filterString]]; {{cc|returns "Player"}}</code> | ||
|[[find]], [[BIS_fnc_inString]], [[splitString]], [[joinString]] | |seealso= [[find]], [[BIS_fnc_inString]], [[splitString]], [[joinString]] | ||
}} | }} |
Revision as of 01:27, 17 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Strings
Syntax
- Syntax:
- Syntax needed
- Parameters:
- text:: String - Text to filter.
- filter (Optional): String - Filter of allowed characters (default: A-Z, a-z, 0-9 and "_")
- Return Value:
- Return value needed
Examples
- Example 1:
["Player 1 @%!@$"] call BIS_fnc_filterString; // returns "Player1"
- Example 2:
["Player 1", "Player"] call BIS_fnc_filterString; // returns "Player"
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note