The*_*ver 21 vbscript asp-classic
我有一个搜索框.
我的管理员用户可能会搜索"@MG @EB dorchester".
在ASP中,我需要计算符号"@"出现在字符串中的次数.怎么可能?
And*_*are 42
试试这个:
len(yourString) - len(replace(yourString, "@", ""))
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
37281 次 |
| 最近记录: |