上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: i += 1; 这样有助于记忆: i自加的值等于1 阅读全文
posted @ 2019-07-05 10:15 books2read 阅读(788) 评论(0) 推荐(0)
摘要: $identify 的 “identify” 表示一个Perl标识符,即 identifier 阅读全文
posted @ 2019-07-04 14:22 books2read 阅读(238) 评论(0) 推荐(0)
摘要: #! /usr/bin/perl use strict; use warnings;#my @strict_pragma = qw ( a b c);#print $strict_pragma[0];print "\n _delimiter_match_http:// \n";$_ = "https 阅读全文
posted @ 2019-07-04 14:12 books2read 阅读(330) 评论(0) 推荐(0)
摘要: #! /usr/bin/perl use strict; use warnings;print "\n simple_pattern_metacharacter_quantifier \n";$_ = "asteriskasterisk hash access unpack_func";for (/ 阅读全文
posted @ 2019-07-04 14:11 books2read 阅读(219) 评论(0) 推荐(0)
摘要: #! /usr/bin/perl use strict; use warnings;print "\n _substitutions_with_s/// \n";$_ = "He's out bowling with Barney tonight.";s/Barney/Fred/;print $_. 阅读全文
posted @ 2019-07-04 13:30 books2read 阅读(234) 评论(0) 推荐(0)
摘要: 先行断言: /a(?=b)/ ,positive lookahead,a的后方必须是b才行 /a(?!b)/ ,negative lookahead,a的后方必须不是b才能匹配 如下图示: 来自:https://regexper.com/#%2F%5Cd%28%3F%3D%5BAB%5D%29%2F 阅读全文
posted @ 2019-07-04 10:33 books2read 阅读(496) 评论(0) 推荐(0)
摘要: Regex of Perl: ?= 指的是如果后面匹配到,则后面的内容不做替换,保留。 ab, s/a?=b/x/,变为xb,即后面匹配到b,b保留不做替换 阅读全文
posted @ 2019-07-04 10:08 books2read 阅读(254) 评论(0) 推荐(0)
摘要: Perl:正则中问号的四周用途:1.字面意义的问号 2. 量词 3. 表示非贪心的修饰符 4.用以表示不具有记忆功能的圆括号 非贪心:在量词后面加?即可 阅读全文
posted @ 2019-07-03 16:03 books2read 阅读(450) 评论(0) 推荐(0)
摘要: 要把下面文件的内容改了, Program name: graniteAuthor: Gilbert BatesCompany: RockSoftDepartment: R&DPhone: +1 503 555-0095Date: Tues March 9, 2004Version: 2.1Size: 阅读全文
posted @ 2019-07-03 15:08 books2read 阅读(1029) 评论(0) 推荐(0)
摘要: vi. To input the ^M character, press Ctrl-v , and then press Enter or return . In vim, use :set ff=unix to convert to Unix; use :set ff=dos to convert 阅读全文
posted @ 2019-07-03 14:34 books2read 阅读(156) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
Total Visits
AmazingCounters.com