1、什么是正则表达式正则表达式(Regular Expression)是一个描述字符模式的对象,ECMAcript的RegExp类表示正则表达式,而String和RegExp都定义了使用正则表达式强大的模式匹配和文本检索与替换的函数。
2、创建正则表达式的方式第一种创建方式
var box=new RegExp(‘box’); //第一个是参数字符串
var box=new...
分类:
编程语言 时间:
2015-04-10 17:55:01
阅读次数:
151
string str="web/abc.aspx";if(str.EndsWith("abc.aspx")){此方法将 value 与位于此实例末尾、与 value 长度相同的子字符串进行比较,并返回它们是否相等的指示。 若要相等,value 必须是对此同一实例的引用,或者与此实例的末尾匹配。 此方...
分类:
Web程序 时间:
2015-04-10 17:50:30
阅读次数:
216
*IFeature要素修改其属性值后必须IFeature.Store()才能在数据库中存储相应修改*ITableSort对ISelectionSet中的数据按照属性进行排序(ISelectionSet可以通过IFeatureClass.Select()方法获得)1 string strSortFie...
分类:
其他好文 时间:
2015-04-10 17:46:19
阅读次数:
142
此代码由Java改写而来,字符串支持中文格式的。 string str1 = "中国ab-15"; string str2 = "中国ab-23"; byte[] char1 = Encoding.UTF8.GetBytes(str1...
1 //获取ip物理地址的接口地址 2 public static readonly string ipUrl = "http://ip.taobao.com/service/getIpInfo.php?ip="; 3 4 public void ProcessR...
public static String getComparedSBQDate(String yxqq,String starttime){ String str = starttime; SimpleDateFormat sdf = new SimpleDateForm...
分类:
编程语言 时间:
2015-04-10 17:19:31
阅读次数:
129
Locale locale = getResources().getConfiguration().locale;
String language = locale.getLanguage();
其中language为语言码:
zh:汉语
en:英语...
分类:
移动开发 时间:
2015-04-10 15:37:37
阅读次数:
127
LayoutInflater.inflate详解LayoutInflater概述 从XML文件中实例化一个布局成对应的View类, 它从来不会直接使用, 而是使用getLayoutInflater()或者getSystemService(String)来获得一个对应当前context的标准LayoutInflater
实例。 例如: LayoutInflater inflater =...
分类:
其他好文 时间:
2015-04-10 15:34:35
阅读次数:
115
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:
其他好文 时间:
2015-04-10 15:29:31
阅读次数:
161
连接数据库的java测试代码 1 import java.sql.*; 2 3 public class ConManager { 4 final static String cfn = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; 5 ...
分类:
数据库 时间:
2015-04-10 15:26:20
阅读次数:
371