Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想允许这种文件名类型:
AZ 字母 az 字母 1-x 数字 特殊字符:"(" ")" "-"
如果您可以帮助我处理 preg_match 规则,我尝试过但没有成功。
<?php $filename = "A-("; if(preg_match("/^[A-Za-z0-9-\(\)]+$/", $filename)) { echo "matched"; }
我是 Android 开发的新手。
我正在尝试使用 JSON 在列表视图中基于用户 ID 获取 db 值。
我在stackoverflow上搜索了这个问题,但我找不到解决方案。
我不知道我得到了什么,JSONArray 或 JSONObject。
标题显示在 logcat 中。我已经尝试了下面提到的代码。
p