码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
验证邮箱和正则表达式
/** * 验证邮箱地址是否正确 * * @param email * @return */ public static boolean checkEmail(String email) { boolean flag = false; try { String check = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z...
分类:其他好文   时间:2015-02-06 01:58:32    阅读次数:174
通过 Groovy / Java 自动运行 Sikuli 测试
import?org.sikuli.script.*; public?class?TestSikuli?{ ????????public?static?void?main(String[]?args)?{ ????????????????Screen?s?=?new?Screen(); ???????...
分类:编程语言   时间:2015-02-06 01:58:29    阅读次数:278
JAVA强制类型转换
object对象转换为String的一些总结-------------------------------------------------------------------------------- 在java项目的实际开发和应用中,常常需要用到将对象转为String这一基本功能。本文将对常用...
分类:编程语言   时间:2015-02-06 01:53:18    阅读次数:241
[转]正则表达式,去除所有HTML标签
protected string str = "sdasasdsddsdsaaassss 说是道 "; protected void Page_Load(object sender, EventArgs e) { //string regexstr = @"]*>"; ...
分类:Web程序   时间:2015-02-06 00:36:02    阅读次数:227
循环取月的三位英语名 Jan Feb
CultureInfo ci = new CultureInfo("en-US"); DateTime now = DateTime.Now; for (int i = 0; i < 12; i++) { string month = now.ToString("MMM",ci); now = no...
分类:其他好文   时间:2015-02-05 23:07:36    阅读次数:190
Dev技巧
1.TextEditor(barEditItem)取文本 string editValue = barEditItem1.EditValue.ToString(); //错误,返回null string editValue = ((DevExpress.XtraEditors.Text...
分类:其他好文   时间:2015-02-05 23:06:49    阅读次数:206
SQL
--增删改查、约束、聚合函数、分组、分组筛选、排序、类型转换、联合结果集--备份、string函数、case endselect * from Testinsert into Test(Name,Age) values('tom',33)--当我前面是Test的时候,除了ID不用给值,别的字段必须要...
分类:数据库   时间:2015-02-05 23:04:58    阅读次数:203
C++ string的那些坑
1. size_type find_first_of( const basic_string &str, size_type index = 0 );查找在字符串中第一个与str中的某个字符匹配的字符,返回它的位置。搜索从index开始,如果没找到就返回string::npos2.string& r...
分类:编程语言   时间:2015-02-05 21:51:04    阅读次数:217
Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = "leetcode", dict = ["leet"...
分类:其他好文   时间:2015-02-05 20:30:26    阅读次数:273
Count and Say
一、 题目 题目说,如下的字符串: 1, 11, 21, 1211, 111221, ... 1读成11(一个1) 11读成21(两个1) 21读成(一个2一个1) ...... 给一个整数,返回对应得语句。返回语句为一个字符串 二、 分析 题目的意思不是很明白,其实就是说第i+1个字符串是第i个字符串的读法,第一字符串为 “1” 比如第四个字符串是1211,它的读法是 1个1...
分类:其他好文   时间:2015-02-05 20:29:03    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!