Mastering Python Regular Expressions

0
(0)

Mastering Python Regular Expressions
 

  • Author:Félix LópezVictor Romero
  • Length: 110 pages
  • Edition: 1
  • Publisher: Packt Publishing
  • Publication Date: 2014-02-26
  • ISBN-10: 1783283157
  • ISBN-13: 9781783283156
  • Sales Rank: #78327 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Leverage regular expressions in Python even for the most complex features

    Overview

    • Explore the workings of Regular Expressions in Python
    • Learn all about optimizing regular expressions using RegexBuddy
    • Full of practical and step-by-step examples, tips for performance, and solutions for performance-related problems faced by users all over the world

    In Detail

    Regular expressions are used by many text editors, utilities, and programming languages to search and manipulate text based on patterns. They are considered the Swiss army knife of text processing. Powerful search, replacement, extraction and validation of strings, repetitive and complex tasks are reduced to a simple pattern using regular expressions.

    Mastering Python Regular Expressions will teach you about Regular Expressions, starting from the basics, irrespective of the language being used, and then it will show you how to use them in Python. You will learn the finer details of what Python supports and how to do it, and the differences between Python 2.x and Python 3.x.

    The book starts with a general review of the theory behind the regular expressions to follow with an overview of the Python regex module implementation, and then moves on to advanced topics like grouping, looking around, and performance.

    You will explore how to leverage Regular Expressions in Python, some advanced aspects of Regular Expressions and also how to measure and improve their performance. You will get a better understanding of the working of alternators and quantifiers. Also, you will comprehend the importance of grouping before finally moving on to performance optimization techniques like the RegexBuddy Tool and Backtracking.

    Mastering Python Regular Expressions provides all the information essential for a better understanding of Regular Expressions in Python.

    What you will learn from this book

    • Explore the regular expressions syntax
    • Improve the readability and future maintenance of the regex
    • Find solutions for typical problems with regular expressions
    • Familiarize yourself with match and search operations
    • Leverage the look around technique to create powerful regular expressions
    • Gain insight on the uses of Groups
    • Get to know how the regex engine works through the Backtracking process
    • Enhance the performance of your regular expressions

    Approach

    A short and straight to the point guide that explains the implementation of Regular Expressions in Python.

    Who this book is written for

    This book is aimed at Python developers who want to learn how to leverage Regular Expressions in Python. Basic knowledge of Python is required for a better understanding.

    Table of Contents

    Chapter 1: Introducing Regular Expressions
    Chapter 2: Regular Expressions with Python
    Chapter 3: Grouping
    Chapter 4: Look Around
    Chapter 5: Performance of Regular Expressions

    中文:

    书名:Mastering Python Regular Expressions

    即使对于最复杂的功能,也可以利用Python中的正则表达式

    Overview

    • 探索正则表达式在Python中的工作方式
    • 了解有关使用RegexBuddy优化正则表达式的所有信息
    • 充斥着世界各地用户面临的实用和循序渐进的示例、性能提示和性能相关问题的解决方案

    In Detail

    许多文本编辑器、实用程序和编程语言都使用正则表达式来根据模式搜索和操作文本。它们被认为是文本处理的瑞士军刀。强大的字符串搜索、替换、提取和验证功能,使用正则表达式将重复和复杂的任务简化为简单的模式。

    掌握Python正则表达式将教您从基础开始学习正则表达式,无论使用哪种语言,然后它将向您展示如何在Python中使用它们。您将更详细地了解Python支持什么以及如何支持,以及Python2.x和Python3.x之间的区别。

    本书首先对正则表达式背后的理论进行了全面回顾,然后概述了Python正则表达式模块的实现,然后讨论了分组、查找和性能等高级主题。

    您将探索如何在Python中利用正则表达式、正则表达式的一些高级方面,以及如何测量和提高它们的性能。你将对交流发电机和量词的工作有更好的了解。此外,您还将在最终转向性能优化技术(如RegexBuddy工具和回溯)之前理解分组的重要性。

    掌握Python正则表达式提供了更好地理解Python中的正则表达式所必需的所有信息。

    你将从这本书中学到什么

    • 探索正则表达式语法
    • 提高正则表达式的可读性和未来的维护
    • 查找正则表达式典型问题的解决方案
    • 熟悉匹配和搜索操作
    • 利用环视技术创建功能强大的正则表达式
    • 洞察群组的用法
    • Get to know how the regex engine works through the Backtracking process
    • Enhance the performance of your regular expressions

    Approach

    这是一个简短而直截了当的指南,解释了正则表达式在Python语言中的实现。

    这本书是为谁写的

    这本书的目标读者是想要学习如何在Python中利用正则表达式的Python开发人员。为了更好地理解,需要具备基本的Python知识。

    Table of Contents

    Chapter 1: Introducing Regular Expressions
    第2章:使用Python的正则表达式
    Chapter 3: Grouping
    Chapter 4: Look Around
    Chapter 5: Performance of Regular Expressions

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册