图书介绍

正则表达式CookbookPDF|Epub|txt|kindle电子书版本网盘下载

正则表达式Cookbook
  • JanGoyvaerts,StevenLevitban著 著
  • 出版社: 南京:东南大学出版社
  • ISBN:9787564119317
  • 出版时间:2013
  • 标注页数:493页
  • 文件大小:78MB
  • 文件页数:510页
  • 主题词:正则表达式-英文

PDF下载


点此进入-本书在线PDF格式电子书下载【推荐-云解压-方便快捷】直接下载PDF格式图书。移动端-PC端通用
种子下载[BT下载速度快]温馨提示:(请使用BT下载软件FDM进行下载)软件下载地址页直链下载[便捷但速度慢]  [在线试读本书]   [在线获取解压码]

下载说明

正则表达式CookbookPDF格式电子书版下载

下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。

建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!

(文件页数 要大于 标注页数,上中下等多册电子书除外)

注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具

图书目录

1.Introduction to Regular Expressions1

Regular Expressions Defined1

Searching and Replacing with Regular Expressions5

Tools for Working with Regular Expressions7

2.Basic Regular Expression Skills25

2.1 Match Literal Text26

2.2 Match Nonprintable Characters28

2.3 Match One of Many Characters30

2.4 Match Anv Character34

2.5 Match Something at the Start and/or the End of a Line36

2.6 Match Whole Words41

2.7 Unicode Code Points,Properties,Blocks,and Scripts43

2.8 Match One of Several Alternatives55

2.9 Group and Capture Parts of the Match57

2.10 Match Previously Matched Text Again60

2.11 Capture and Name Parts of the Match62

2.12 Repeat Part of the Regex a Certain Number of Times64

2.13 Choose Minimal or Maximal Repetition67

2.14 Eliminate Needless Backtracking70

2.15 Prevent Runaway Repetition72

2.16 Test for a Match Without Adding It to the Overall Match75

2.17 Match One of Two Alternatives Based on a Condition81

2.18 Add Comments to a Regular Expression83

2.19 Insert Literal Text into the Replacement Text85

2.20 Insert the Regex Match into the Replacement Text87

2.21 Insert Part of the Regex Match into the Replacement Text88

2.22 Insert Match Context into the Replacement Text92

3.Programming with Regular Expressions95

Programming Languages and Regex Flavors95

3.1 Literal Regular Expressions in Source Code100

3.2 Import the Regular Expression Library106

3.3 Creating Regular Expression Objects108

3.4 Setting Regular Expression Options114

3.5 Test Whether a Match Can Be Found Within a Subject String121

3.6 Test Whether a Regex Matches the Subject String Entirely127

3.7 Retrieve the Matched Text132

3.8 Determine the Position and Length of the Match138

3.9 Retrieve Part of the Matched Text143

3.10 Retrieve a List of All Matches150

3.11 Iterate over All Matches155

3.12 Validate Matches in Procedural Code161

3.13 Find a Match Within Another Match165

3.14 Replace All Matches169

3.15 Replace Matches Reusing Parts of the Match176

3.16 Replace Matches with Replacements Generated in Code181

3.17 Replace All Matches Within the Matches of Another Regex187

3.18 Replace All Matches Between the Matches of Another Regex189

3.19 Split a String195

3.20 Split a String,Keeping the Regex Matches203

3.21 Search Line by Line208

4.Validation and Formatting213

4.1 Validate Email Addresses213

4.2 Validate and Format North American Phone Numbers219

4.3 Validate International Phone Numbers224

4.4 Validate Traditional Date Formats226

4.5 Accurately Validate Traditional Date Formats229

4.6 Validate Traditional Time Formats234

4.7 Validate ISO 8601 Dates and Times237

4.8 Limit Input to Alphanumeric Characters241

4.9 Limit the Length of Text244

4.10 Limit the Number of Lines in Text248

4.11 Validate Affirmative Responses253

4.12 Validate Social Security Numbers254

4.13 Validate ISBNs257

4.14 Validate ZIP Codes264

4.15 Validate Canadian Postal Codes265

4.16 Validate U.K.Postcodes266

4.17 Find Addresses with Post Office Boxes266

4.18 Reformat Names From"FirstName LastName"to"LastName,FirstName"268

4.19 Validate Credit Card Numbers271

4.20 European VAT Numbers278

5.Words,Lines,and SpecialCharacters285

5.1 Find a Specific Word285

5.2 Find Anv of Multiple Words288

5.3 Find Similar Words290

5.4 Find All Except a Specific Word294

5.5 Find Anv Word Not Followed by a Specific Word295

5.6 Find Anv Word Not Preceded by a Specific Word297

5.7 Find Words Near Each Other300

5.8 Find Repeated Words306

5.9 Remove Duplicate Lines308

5.10 Match Complete Lines That Contain a Word312

5.11 Match Complete Lines That Do Not Contain a Word313

5.12 Trim Leading and Trailing Whitespace314

5.13 Replace Repeated Whitespace with a Single Space317

5.14 Escape Regular Expression Metacharacters319

6.Numbers323

6.1 Integer Numbers323

6.2 Hexadecimal Numbers326

6.3 Binary Numbers329

6.4 Strip Leading Zeros330

6.5 Numbers Within a Certain Range331

6.6 Hexadecimal Numbers Within a Certain Range337

6.7 Floating Point Numbers340

6.8 Numbers with Thousand Separators343

6.9 Roman Numerals344

7.URLs,Paths,and Internet Addresses347

7.1 Validating URLs347

7.2 Finding URLs Within Full Text350

7.3 Finding Quoted URLs in Full Text352

7.4 Finding URLs with Parentheses in Full Text353

7.5 Turn URLs into Links356

7.6 Validating URNs356

7.7 Validating Generic URLs358

7.8 Extracting the Scheme from a URL364

7.9 Extracting the User from a URL366

7.10 Extracting the Host from a URL367

7.11 Extracting the Port from a URL369

7.12 Extracting the Path from a URL371

7.13 Extracting the Query from a URL374

7.14 Extracting the Fragment from a URL376

7.15 Validating Domain Names376

7.16 Matching IPv4 Addresses379

7.17 Matching IPv6 Addresses381

7.18 Validate Windows Paths395

7.19 Split Windows Paths into Their Parts397

7.20 Extract the Drive Letter from a Windows Path402

7.21 Extract the Server and Share from a UNC Path403

7.22 Extract the Folder from a Windows Path404

7.23 Extract the Filename from a Windows Path406

7.24 Extract the File Extension from a Windows Path407

7.25 Strip Invalid Characters from Filenames408

8.Markup and Data Interchange411

8.1 Find XML-Style Tags417

8.2 Replace<b>Tags with<strong>434

8.3 Remove All XML-Style Tags Except<em>and<strong>438

8.4 Match XML Names441

8.5 Convert Plain Text to HTML by Adding<p>and<br>Tags447

8.6 Find a Specific Attribute in XML-Style Tags450

8.7 Add a cellspacing Attribute to<table>Tags That Do Not Already Include It455

8.8 Remove XML-Style Comments458

8.9 Find Words Within XML-Style Comments462

8.10 Change the Delimiter Used in CSV Files466

8.11 Extract CSV Fields from a Specific Column469

8.12 Match INI Section Headers473

8.13 Match INI Section Blocks475

8.14 Match INI Name-Value Pairs476

Index479

热门推荐