码迷,mamicode.com
首页 >  
搜索关键字:awk gsub sub split substr    ( 23444个结果
探索Split函数第三位参数的用法
Private Sub Form_Click() Dim c() As String c = Split("A,B,C,D,E", ",") For i = 0 To UBound(c) Print c(i) Next iEnd Sub运行效果:ABCDEPri...
分类:其他好文   时间:2014-07-24 10:07:34    阅读次数:215
十、oracle 常用函数
一、字符函数字符函数是oracle中最常用的函数,我们来看看有哪些字符函数:lower(char):将字符串转化为小写的格式。upper(char):将字符串转化为大写的格式。length(char):返回字符串的长度。substr(char, m, n):截取字符串的子串,n代表取n个字符的意思,...
分类:数据库   时间:2014-07-23 16:47:51    阅读次数:323
substring()、slice()和substr()方法辨析
这几天看以前的文档,当看到substring()、slice()和substr()时,不清楚它们的区别,经查阅资料并亲自验证,做出以下总结:首先定义一个变量便于下面测试:var str='q1207526854'str.substring(form,to):从字符串里截取下标为form到下标为to的...
分类:其他好文   时间:2014-07-23 16:26:11    阅读次数:219
php使用zeromq
Zeromq是个啥玩意?Connectyourcodeinanylanguage,onanyplatform.Carriesmessagesacrossinproc,IPC,TCP,TPIC,multicast.Smartpatternslikepub-sub,push-pull,androuter-dealer.High-speedasynchronousI/Oengines,inatinylibrary.Backedbyalargeandactiveopensourcecommunity.Su..
分类:Web程序   时间:2014-07-23 13:45:57    阅读次数:328
JS 获取url参数
function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); ...
分类:Web程序   时间:2014-07-23 13:00:46    阅读次数:204
C#字符串根据特定字符串分割
String字符串如何按多个字符采用Split方法进行分割呢?本文提供VS2005和VS2003的实现方法,VS2005可以用下面的方法: string agentInfo = userInfo.Attribute19.ToString(); string[] m...
分类:其他好文   时间:2014-07-23 12:40:46    阅读次数:198
LeetCode "Construct Binary Tree from Inorder and Postorder Traversal"
Another textbook problem. We take back of postorder array as the current root, and then we can split the inorder array: 1st half for current right chi...
分类:其他好文   时间:2014-07-23 12:01:56    阅读次数:210
python 初学02 替换文件内容
用python替换文件内容的方法,搜了网上许多例子,又请教了朋友。把完整的实现流程写一下,希望对大家有所帮助。要求:目标文件中有一个字段为no=x x为0、1、2……,将其替换为no=01 import re2 fobj = open("goal.ini", "r")3 f = re.sub("no...
分类:编程语言   时间:2014-07-23 11:57:16    阅读次数:252
shell脚本报错:"[: =: unary operator expected"
shell脚本报错:"[:=:unaryoperatorexpected"md5_109a="81ab961153b62d207f0f517048881b5d"md5_109b=`md5suminstall.bin|awk‘{print$1}‘`if[$md5_109a!=$md5_109b]原因,当文件install.bin不存在时,$md5_109b为空这样对比字符串就变成了if[81ab961153b62d207f0f517048881b5d!..
分类:其他好文   时间:2014-07-23 00:20:38    阅读次数:211
LINUX常用命令
目标 }掌握linux的一些基本命令 }掌握linux常用的系统管理命令 }学会日常软件的安装 }在linux系统里面发布web项目 正文...
分类:系统相关   时间:2014-07-23 00:01:04    阅读次数:468
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!