码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
Android 带password输入界面的Dialog实现机制
1.布局实现: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pa
分类:移动开发   时间:2016-02-05 18:35:34    阅读次数:236
Match:Blue Jeans(POJ 3080)
DNA序列 题目大意:给你m串字符串,要你找最长的相同的连续字串 这题暴力kmp即可,注意要按字典序排序,同时,是len<3才输出no significant commonalities 1 #include <iostream> 2 #include <functional> 3 #include
分类:其他好文   时间:2016-02-05 01:21:10    阅读次数:294
用XPath精确定位节点元素&selenium使用Xpath定位之完整篇
在利用XSL进行转换的过程中,匹配的概念非常重要。在模板声明语句 xsl:template match = ""和模板应用语句xsl:apply-templates select = "" 中,用引号括起来的部分必须能够精确地定位节点。具体的定位方法则在XPath中给出。 之所以要在XSL中引入XP
分类:其他好文   时间:2016-02-04 18:45:20    阅读次数:368
js正则函数match、exec、test、search、replace、split使用介绍集合
参考网络资源整理:实例讲述了js正则表达式test()和exec()用法。分享给大家供大家参考。具体如下: match 方法 使用正则表达式模式对字符串执行查找,并将包含查找的结果作为数组返回。 stringObj.match(rgExp) 参数 stringObj 必选项。对其进行查找的 Stri
分类:Web程序   时间:2016-02-04 11:27:06    阅读次数:233
js实现开灯关灯效果
<!DOCTYPE html> <html> <body> <script> function changeImage() { element=document.getElementById('myimage') if (element.src.match("bul1")) //这里的意思是让bul
分类:Web程序   时间:2016-02-04 09:44:38    阅读次数:534
Match:Oulipo(POJ 3461)
Oulipo 题目大意:给你一个字符串,要你找到字符串包含指定子串的个数 只要你知道了KMP,这一题简直不要太简单,注意STL的string是会超时的,还是乖乖用char吧 1 #include <iostream> 2 #include <algorithm> 3 #include <functi
分类:其他好文   时间:2016-02-04 06:40:48    阅读次数:221
[android]如何使LinearLayout布局从右向左水平排列,而不是从左向右排列
方法1: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"
分类:移动开发   时间:2016-02-03 18:14:10    阅读次数:1176
php 关于文件夹的一些封装好的函数
/** *检测文件名是否合法 * @param string $filename * @return boolean */ function checkFilename($filename){ $pattern = "/[\/,\*,<>,\?\|]/"; if (preg_match ( $pat
分类:Web程序   时间:2016-02-03 11:42:13    阅读次数:160
Fluentd 例子
1. http输入,stdout输出 例子 <source> @type http port 8888 bind 0.0.0.0 </source> <match td3.**> type stdout </match> 请求 curl http://10.218.139.216:8888/td3
分类:其他好文   时间:2016-02-03 10:45:54    阅读次数:582
网址带参数
function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i"); var r = window.location.search.substr(1).match(reg); if (r
分类:其他好文   时间:2016-02-03 09:46:30    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!