您好,欢迎来到聚文网。 登录 免费注册
正则表达式Cookbook

正则表达式Cookbook

  • 字数: 749000.0
  • 装帧: 平装
  • 出版社: 东南大学出版社
  • 作者: (比)高瓦特斯 等 著
  • 出版日期: 2013-05-01
  • 商品条码: 9787564142025
  • 版次: 1
  • 开本: 16开
  • 页数: 594
  • 出版年份: 2013
定价:¥79 销售价:登录后查看价格  ¥{{selectedSku?.salePrice}} 
库存: {{selectedSku?.stock}} 库存充足
{{item.title}}:
{{its.name}}
精选
内容简介
本书提供了超过100条的锦囊妙计,帮助你利用正则表达式处理数据、操纵文本。每位程序员都能找到正则表达式的用武之地,但想要充分发挥它的威力却未必容易。纵使经验丰富的用户也常会遇到性能不佳、误判、漏判或者令人费解的错误。《正则表达式cookbook》对涉及此工具的最常见
目录
Preface .ix
1. Introduction to Regular Expressions 1
Regular Expressions Defined 1
Search and Replace with Regular Expressions 6
Tools for Working with Regular Expressions 8
2. Basic Regular Expression Skills 27
2.1 Match Literal Text 28
2.2 Match Nonprintable Characters 30
2.3 Match One of Many Characters 33
2.4 Match Any Character 38
2.5 Match Something at the Start and/or the End of a Line 40
2.6 Match Whole Words 45
2.7 Unicode Code Points, Categories, Blocks, and Scripts 48
2.8 Match One of Several Alternatives 62
2.9 Group and Capture Parts of the Match 63
2.10 Match Previously Matched Text Again 66
2.11 Capture and Name Parts of the Match 68
2.12 Repeat Part of the Regex a Certain Number of Times 72
2.13 Choose Minimal or Maximal Repetition 75
2.14 Eliminate Needless Backtracking 78
2.15 Prevent Runaway Repetition 81
2.16 Test for a Match Without Adding It to the Overall Match 84
2.17 Match One of Two Alternatives Based on a Condition 91
2.18 Add Comments to a Regular Expression 93
2.19 Insert Literal Text into the Replacement Text 95
2.20 Insert the Regex Match into the Replacement Text 98
2.21 Insert Part of the Regex Match into the Replacement Text 99
2.22 Insert Match Context into the Replacement Text 103
......

蜀ICP备2024047804号

Copyright 版权所有 © jvwen.com 聚文网