//activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:contex..
分类:
移动开发 时间:
2015-01-14 18:12:58
阅读次数:
242
//activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.vincentlin.checkbox.Main..
分类:
移动开发 时间:
2015-01-14 18:06:40
阅读次数:
183
(1)布局文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height...
分类:
移动开发 时间:
2015-01-14 15:33:34
阅读次数:
316
(1)布局文件:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_heigh...
分类:
移动开发 时间:
2015-01-14 12:46:33
阅读次数:
219
前段时间需要用到比较多的js代码,当时有点搞不清test和match方法的区别,向百度求助,找到了这边关于正则匹配的博文,感谢作者分享。原文地址【http://blog.sina.com.cn/s/blog_89da3e5101013giy.html】JS的正则表达式rge.test(str) 检验...
分类:
编程语言 时间:
2015-01-13 21:26:24
阅读次数:
223
上一篇讲述了在C#中有关正则表达式的类之间的关系,以及它们的方法,这一篇主要是将Regex这个类的用法的,关于Match及MatchCollection类会在下一篇讲到。对于正则表达式的应用,基本上可以分为验证、提取、分割和替换。仅仅利用Regex类就可以实现验证和简单替换。利用Regex类实现验证...
awk提供了许多强大的字符串函数,见下表:awk内置字符串函数gsub(r,s) 在整个$0中用s替代rgsub(r,s,t) 在整个t中用s替代rindex(s,t) 返回s中字符串t的第一位置length(s) 返回s长度match(s,r) 测试s是否包含匹配r的字符串split(s,a,fs...
分类:
其他好文 时间:
2015-01-12 20:58:19
阅读次数:
148
一、在XML中
LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
>
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent">
android:layout_h...
分类:
移动开发 时间:
2015-01-12 19:18:21
阅读次数:
154
local str = "aaa.bbb.bbb.txt"--获取文件名function getFileName(str) local idx = str:match(".+()%.%w+$") if(idx) then return str:sub(1, idx-1) ...
分类:
其他好文 时间:
2015-01-12 19:01:49
阅读次数:
265
/**check hk idcard$id = "K548653A";$xx= check_hkid($id);var_dump($xx);**/function check_hkid($id){ if (!preg_match("/^[a-zA-Z][0-9]{6}[0-9aA]$/", $...
分类:
Web程序 时间:
2015-01-12 17:19:18
阅读次数:
707