{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

正则表达式经典实例(第2版)

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

正则表达式经典实例(第2版)

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Content Description

《正则表达式经典实例(第2版)》讲解了基于C#、Java、JavaScript、Perl、PHP、Python、Ruby和VB.NET等8种常用编程语言使用正则表达式的经典实例。书中提供了上百种可以在实战中使用的实例,帮助读者使用正则表达式来处理数据和文本。《正则表达式经典实例(第2版)》针对如何使用正则表达式来解决性能不佳、误报、漏报等常见的错误以及完成一些常见的任务,给出了基于C#、Java、JavaScript、Perl、PHP、Python、Ruby和VB.NET等编程语言的解决方案,旨在教会读者很多技巧以及避免特定语言的陷阱的方法,读者可以通过《正则表达式经典实例(第2版)》提供的实例解决方案库来解决实践中的复杂问题。
《正则表达式经典实例(第2版)》适合对正则表达式感兴趣的软件开发人员和系统管理员阅读。
Author Description

Jan Goyvaerts运营着Just Great Software公司,他在这家公司设计和开发了多款非常流行的正则表达式软件。

Steven Levithan是业界顶尖的JavaScript正则表达式专家,也是多个开源正则表达式工具的创建者。
Catalogue

第1章 正则表达式简介
1.1 正则表达式的定义
1.2 使用正则表达式进行查找和替换
1.3 正则表达式工具

第2章 正则表达式的基本技能
2.1 匹配字面文本
2.2 匹配不可打印字符
2.3 匹配多个字符之一
2.4 匹配任意字符
2.5 匹配文本行起始和 或文本行结尾
2.6 匹配完整单词
2.7 Unicode码位、类别、区块和字母表
2.8 匹配多个选择分支之一
2.9 分组和捕获匹配中的子串
2.10 再次匹配先前匹配的文本
2.11 捕获和命名匹配子串
2.12 把正则表达式的一部分重复多次
2.13 选择最小或最大重复次数
2.14 消除不必要的回溯
2.15 避免失控重复
2.16 测试一个匹配,但不添加到整体匹配中
2.17 根据条件匹配两者之一
2.18 向正则表达式中添加注释
2.19 在替代文本中添加字面文本
2.20 在替代文本中添加正则匹配
2.21 把部分的正则匹配添加到替代文本中
2.22 把匹配上下文插入到替代文本中

第3章 使用正则表达式编程
3.1 在源代码中使用字面正则表达式
3.2 导入正则表达式函数库
3.3 创建正则表达式对象
3.4 设置正则表达式选项
3.5 检查是否可以在目标字符串中找到匹配
3.6 测试正则表达式能否完整匹配目标字符串
3.7 获取匹配文本
3.8 确定匹配的位置和长度
3.9 获取匹配文本的一部分
3.10 获取各次匹配的列表
3.11 遍历所有匹配
3.12 在过程代码中对匹配结果进行验证
3.13 在另一个匹配中查找匹配
3.14 替换所有匹配
3.15 使用匹配的子串来替换匹配
3.16 使用代码中生成的替代文本来替换匹配
3.17 替换另一个正则式匹配内的所有匹配
3.18 替换另一个正则式匹配之间的所有匹配
3.19 拆分字符串
3.20 拆分字符串,保留正则匹配
3.21 逐行查找
3.22 构造语法分析器

第4章 合法性验证和格式化
4.1 验证电子邮件地址
4.2 验证和格式化北美电话号码
4.3 验证国际电话号码
4.4 验证传统日期格式
4.5 排除效日期,精确验证传统日期格式
4.6 验证传统时间格式
4.7 验证ISO 8601格式的日期和时间
4.8 限制输入为字母数字字符
4.9 限制文本长度
4.10 限制文本中的行数
4.11 验证肯定响应
4.12 验证美国社会安全号码
4.13 验证ISBN号码
4.14 验证美国邮政编码
4.15 验证加拿大邮政编码
4.16 验证英国邮政编码
4.17 查找使用邮政信箱的地址
4.18 转换西方姓名格式
4.19 验证密码复杂度
4.20 验证信用卡号码
4.21 欧盟增值税代码

第5章 单词、文本行和特殊字符
5.1 查找特定单词
5.2 查找多个单词之一
5.3 查找相似单词
5.4 查找除某个单词之外的任意单词
5.5 查找后面不是某个特定单词的任意单词
5.6 查找前面不是某个特定单词的任意单词
5.7 查找临近单词
5.8 查找重复单词
5.9 删除重复的文本行
5.10 匹配包含某个单词的整行内容
5.11 匹配不包含某个单词的整行
5.12 删除前导和拖尾的空格
5.13 把重复的空白替换为单个空格
5.14 对正则表达式元字符进行转义

第6章 数字
6.1 整数
6.2 十六进制数
6.3 二进制数
6.4 八进制数
6.5 十进制数
6.6 删除前导
6.7 特定范围之内的整数
6.8 特定范围之内的十六进制数
6.9 带分隔符的整数
6.10 浮点数
6.11 含有千位分隔符的数
6.12 给数添加千位分隔符
6.13 罗马数字

第7章 源代码和日志文件
7.1 关键字
7.2 标识符
7.3 数字常量
7.4 操作符
7.5 单行注释
7.6 多行注释
7.7 所有注释
7.8 字符串
7.9 包含转义符的字符串
7.10 字面正则表达式
7.11 嵌入文档
7.12 通用日志格式
7.13 组合日志格式
7.14 Web日志中报告的效链接

第8章 URL、路径和Internet地址
8.1 验证URL
8.2 全文中查找URL
8.3 全文中搜索引号内的URL
8.4 全文中搜索括号内的URL
8.5 把URL转变为链接
8.6 验证URN
8.7 验证通用URL
8.8 从URL中提取通信协议
8.9 从URL中提取用户名
8.10 从URL中提取主机名
8.11 从URL中提取端口号
8.12 从URL中提取路径
8.13 从URL中提取查询参数
8.14 从URL中提取片段标识符
8.15 验证域名
8.16 匹配IPv4地址
8.17 匹配IPv6地址
8.18 验证Windows路径
8.19 分解Windows路径
8.20 从Windows路径中提取盘符
8.21 从UNC路径中提取服务器和共享名
8.22 从Windows路径中提取文件夹名
8.23 从Windows路径中提取文件名
8.24 从Windows路径中提取文件扩展名
8.25 去除文件名中的非法字符

第9章 标记语言和数据格式
9.1 查找XML风格的标签
9.2 把标签替换为
9.3 删掉除和之外的所有XML风格标签
9.4 匹配XML名称
9.5 添加和标签将纯文本转换为HTML
9.6 解码XML实体
9.7 在XML风格的标签中查找某个特定属性
9.8 向不包含cellspacing属性的标签中添加该属性
9.9 删除XML风格的注释
9.10 在XML风格的注释中查找单词
9.11 替换CSV文件中使用的分隔符
9.12 提取某个特定列中的CSV域
9.13 匹配INI段头
9.14 匹配INI段块
9.15 匹配INI名称-值对

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book