javascript中replace() 方法如果直接用str.replace("-","!") 只会替换第一个匹配的字符. 而str.replace(/\-/g,"!")则可以替换掉全部匹配的字符(g为全局标志)。 ...
分类:
Web程序 时间:
2017-09-03 13:14:17
阅读次数:
182
os :windows7 x64 jdk:jdk-8u131-windows-x64 ide:Eclipse Oxygen Release (4.7.0) code: result: Java优秀,值得学习。学习资源:API手册+Java源码+清净的心地。 ...
分类:
编程语言 时间:
2017-09-03 12:25:20
阅读次数:
294
#字符串 #字符串方法 #find title.find("sdf") 没有返回-1 #join 添加元素 #lower #replace(”isj,"ss") #’1+2+3+4‘。split(“+”) ...
分类:
编程语言 时间:
2017-09-03 12:13:18
阅读次数:
142
对于字符串处理Android为我们提供了一个简单实用的TextUtils类, 如果处理比较简单的内容不用去思考正则表达式不妨试试这个在android.text.TextUtils的类,主要的功能如下: 1. 是否为空字符 boolean Android.text.TextUtils.isEmpty( ...
分类:
移动开发 时间:
2017-09-03 11:08:04
阅读次数:
224
字符串常用方法 capitalize() String.capitalize() 将字符串首字母变为大写 name = 'xiaoming' new_name = name.capitalize() print(new_name) 运行结果:Xiaoming count() String.count ...
分类:
编程语言 时间:
2017-09-03 00:25:30
阅读次数:
280
最简单的就是contains()方法 String str = "helloworld"; System.out.println(str.contains("world")); // true jdk 1.5 后才有的 System.out.println(str.indexOf("world")) ...
分类:
其他好文 时间:
2017-09-02 15:47:56
阅读次数:
140
1、Oracle Function --入参:表 id /* cxcyxm02 :操作表,含有一个存储另一张表(xs0101)多个主键id的字段 ids :操作表的主键 id */ CREATE OR REPLACE FUNCTION cxcyxmcyry(ids VARCHAR2) RETURN ...
分类:
其他好文 时间:
2017-09-02 14:27:10
阅读次数:
175
打开终端输入以下命令: sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo apt-get install sublime-text-installer 卸载 sublime text 命令: ...
分类:
系统相关 时间:
2017-09-02 10:37:35
阅读次数:
166
//string函数用法详解!附代码,写具体的用法! #include #include #include using namespace std; int main() { //1.string类重载运算符operator>>用于输入,同样重载运算符oper... ...
分类:
其他好文 时间:
2017-09-01 19:38:04
阅读次数:
111
NVL函数 Oracle/PLSQL中的一个函数。 格式为: NVL( string1, replace_with) 功能:如果string1为NULL,则NVL函数返回replace_with的值,否则返回string1的值。 注意事项:string1和replace_with必须为同一数据类型, ...
分类:
其他好文 时间:
2017-09-01 16:11:53
阅读次数:
181