getAlphaNumeric

本节介绍 Zoho Creator 中的 getAlphaNumeric 函数的语法和使用。

描述

getAlphaNumeric 函数仅返回给定字符串中的字母数字字符。

语法

<string>.getAlphaNumeric()
getAlphaNumeric(string)

//仅在脚本构建器的自由流程脚本模式下才支持此格式。

getAlphaNumeric 函数语法有以下参数。

string - 必需。您想要从中获取字母数字字符的的主字符串。 

示例

text="Mahatma Gandhi was born on 02-10-1869";

text.getAlphaNumeric(); //返回 MahatmaGandhiwasbornon02101869 

text="Mahatma Gandhi was born on 02-10-1869";

getAlphaNumeric(text); //返回 MahatmaGandhiwasbornon02101869