图书介绍
正则表达式Cookbook 第2版 英文PDF|Epub|txt|kindle电子书版本网盘下载
![正则表达式Cookbook 第2版 英文](https://www.shukui.net/cover/75/35027345.jpg)
- (比)高瓦特斯,(美)利维森著 著
- 出版社: 南京:东南大学出版社
- ISBN:9787564142025
- 出版时间:2013
- 标注页数:598页
- 文件大小:112MB
- 文件页数:613页
- 主题词:正则表达式-英文
PDF下载
下载说明
正则表达式Cookbook 第2版 英文PDF格式电子书版下载
下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!
(文件页数 要大于 标注页数,上中下等多册电子书除外)
注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具
图书目录
1.Introduction to Regular Expressions1
Regular Expressions Defined1
Search and Replace with Regular Expressions6
Tools for Working with Regular Expressions8
2.Basic Regular Expression Skills27
2.1 Match Literal Text28
2.2 Match Nonprintable Characters30
2.3 Match One of Many Characters33
2.4 Match Any Character38
2.5 Match Something at the Start and/or the End of a Line40
2.6 Match Whole Words45
2.7 Unicode Code Points,Categories,Blocks,and Scripts48
2.8 Match One of Several Alternatives62
2.9 Group and Capture Parts of the Match63
2.10 Match Previously Matched Text Again66
2.11 Capture and Name Parts of the Match68
2.12 Repeat Part of the Regex a Certain Number of Times72
2.13 Choose Minimal or Maximal Repetition75
2.14 Eliminate Needless Backtracking78
2.15 Prevent Runaway Repetition81
2.16 Test for a Match Without Adding It to the Overall Match84
2.17 Match One of Two Alternatives Based on a Condition91
2.18 Add Comments to a Regular Expression93
2.19 Insert Literal Text into the Replacement Text95
2.20 Insert the Regex Match into the Replacement Text98
2.21 Insert Part of the Regex Match into the Replacement Text99
2.22 Insert Match Context into the Replacement Text103
3.Programming with Regular Expressions105
Programming Languages and Regex Flavors105
3.1 Literal Regular Expressions in Source Code111
3.2 Import the Regular Expression Library117
3.3 Create Regular Expression Objects119
3.4 Set Regular Expression Options126
3.5 Test If a Match Can Be Found Within a Subject String133
3.6 Test Whether a Regex Matches the Subject String Entirely140
3.7 Retrieve the Matched Text144
3.8 Determine the Position and Length of the Match151
3.9 Retrieve Part of the Matched Text156
3.10 Retrieve a List of All Matches164
3.11 Iterate over All Matches169
3.12 Validate Matches in Procedural Code176
3.13 Find a Match Within Another Match179
3.14 Replace All Matches184
3.15 Replace Matches Reusing Parts of the Match192
3.16 Replace Matches with Replacements Generated in Code197
3.17 Replace All Matches Within the Matches of Another Regex203
3.18 Replace All Matches Between the Matches of Another Regex206
3.19 Split a String211
3.20 Split a String,Keeping the Regex Matches219
3.21 Search Line by Line224
3.22 Construct a Parser228
4.Validation and Formatting243
4.1 Validate Email Addresses243
4.2 Validate and Format North American Phone Numbers249
4.3 Validate International Phone Numbers254
4.4 Validate Traditional Date Formats256
4.5 Validate Traditional Date Formats,Excluding Invalid Dates260
4.6 Validate Traditional Time Formats266
4.7 Validate ISO 8601 Dates and Times269
4.8 Limit Input to Alphanumeric Characters275
4.9 Limit the Length of Text278
4.10 Limit the Number of Lines in Text283
4.11 Validate Affirmative Responses288
4.12 Validate Social Security Numbers289
4.13 Validate ISBNs292
4.14 Validate ZIP Codes300
4.15 Validate Canadian Postal Codes301
4.16 Validate U.K.Postcodes302
4.17 Find Addresses with Post Office Boxes303
4.18 Reformat Names From"FirstName LastName"to"LastName,FirstName"305
4.19 Validate Password Complexity308
4.20 Validate Credit Card Numbers317
4.21 European VAT Numbers323
5.Words,Lines,and Special Characters331
5.1 Find a Specific Word331
5.2 Find Any of Multiple Words334
5.3 Find Similar Words336
5.4 Find All Except a Specific Word340
5.5 Find Any Word Not Followed by a Specific Word342
5.6 Find Any Word Not Preceded by a Specific Word344
5.7 Find Words Near Each Other348
5.8 Find Repeated Words355
5.9 Remove Duplicate Lines358
5.10 Match Complete Lines That Contain a Word362
5.11 Match Complete Lines That Do Not Contain a Word364
5.12 Trim Leading and Trailing Whitespace365
5.13 Replace Repeated Whitespace with a Single Space369
5.14 Escape Regular Expression Metacharacters371
6.Numbers375
6.1 Integer Numbers375
6.2 Hexadecimal Numbers379
6.3 Binary Numbers381
6.4 Octal Numbers383
6.5 Decimal Numbers384
6.6 Strip Leading Zeros385
6.7 Numbers Within a Certain Range386
6.8 Hexadecimal Numbers Within a Certain Range392
6.9 Integer Numbers with Separators395
6.10 Floating-Point Numbers396
6.11 Numbers with Thousand Separators399
6.12 Add Thousand Separators to Numbers401
6.13 Roman Numerals406
7.Source Code and Log Files409
7.1 Keywords409
7.2 Identifiers412
7.3 Numeric Constants413
7.4 Operators414
7.5 Single-Line Comments415
7.6 Multiline Comments416
7.7 All Comments417
7.8 Strings418
7.9 Strings with Escapes421
7.10 Regex Literals423
7.11 Here Documents425
7.12 Common Log Format426
7.13 Combined Log Format430
7.14 Broken Links Reported in Web Logs431
8.URLs,Paths,andInternet Addresses435
8.1 Validating URLs435
8.2 Finding URLs Within Full Text438
8.3 Finding Quoted URLs in Full Text440
8.4 Finding URLs with Parentheses in Full Text442
8.5 Turn URLs into Links444
8.6 Validating URNs445
8.7 Validating Generic URLs447
8.8 Extracting the Scheme from a URL453
8.9 Extracting the User from a URL455
8.10 Extracting the Host from a URL457
8.11 Extracting the Port from a URL459
8.12 Extracting the Path from a URL461
8.13 Extracting the Query from a URL464
8.14 Extracting the Fragment from a URL465
8.15 Validating Domain Names466
8.16 Matching IPv4 Addresses469
8.17 Matching IPv6 Addresses472
8.18 Validate Windows Paths486
8.19 Split Windows Paths into Their Parts489
8.20 Extract the Drive Letter from a Windows Path494
8.21 Extract the Server and Share from a UNC Path495
8.22 Extract the Folder from a Windows Path496
8.23 Extract the Filename from a Windows Path498
8.24 Extract the File Extension from a Windows Path499
8.25 Strip Invalid Characters from Filenames500
9.Markup and Data Formats503
Processing Markup and Data Formats with Regular Expressions503
9.1 Find XML-Style Tags510
9.2 Replace<b>Tags with<strong>526
9.3 Remove All XML-Style Tags Except<em>and<strong>530
9.4 Match XML Names533
9.5 Convert Plain Text to HTML by Adding<p>and<br>Tags539
9.6 Decode XML Entities543
9.7 Find a Specific Attribute in XML-Style Tags545
9.8 Add a cellspacing Attribute to<table>Tags That Do Not Already Include It550
9.9 Remove XML-Style Comments553
9.10 Find Words Within XML-Style Comments558
9.11 Change the Delimiter Used in CSV Files562
9.12 Extract CSV Fields from a Specific Column565
9.13 Match INI Section Headers569
9.14 Match INI Section Blocks571
9.15 Match INI Name-Value Pairs572
Index575