码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果
android基础二之ToggleButton
//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
android基础三之CheckBox
//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
【Android学习笔记】DatePickerDialog和TimePickerDialog日期选择器和时间选择器
(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
【Android学习笔记】自定义AlertDialog对话框
(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
javascript的正则匹配
前段时间需要用到比较多的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类用法
上一篇讲述了在C#中有关正则表达式的类之间的关系,以及它们的方法,这一篇主要是将Regex这个类的用法的,关于Match及MatchCollection类会在下一篇讲到。对于正则表达式的应用,基本上可以分为验证、提取、分割和替换。仅仅利用Regex类就可以实现验证和简单替换。利用Regex类实现验证...
分类:Windows程序   时间:2015-01-13 17:18:32    阅读次数:179
AWK
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
Android Button点击事件的三种方式
一、在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
lua 获取文件名和扩展名
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
PHP 验证香港身份证ID号
/**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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!