O'Reilly:正则表达式Cookbook(影印版)

O'Reilly:正则表达式Cookbook(影印版)
分享
扫描下方二维码分享到微信
打开微信,点击右上角”+“,
使用”扫一扫“即可将网页分享到朋友圈。
作者: [美]
2010-01
版次: 1
ISBN: 9787564119317
定价: 72.00
装帧: 平装
开本: 16开
纸张: 胶版纸
页数: 493页
字数: 538千字
正文语种: 简体中文,英语
15人买过
  •   《正则表达式Cookbook(影印版)》提供了超过100条的锦囊妙计,帮助你利用正则表达式处理数据、操纵文本。每位程序员都能找到正则表达式的用武之地,但想要充分发挥它的威力却未必容易。纵使经验丰富的用户也常会遇到性能不佳、误判、漏判或者令人费解的错误。《正则表达式Cookbook》对涉及此工具的最常见任务做了逐步讲解,此外还包括在C#、Java、JavaScript、Perl、PHP、Python、Ruby和VB.NET语言中使用正则表达式的诀窍。
      阅读《正则表达式Cookbook(影印版)》,你将:
      ·通过简洁的教程理解正则表达式的基本原理
      ·在多种编程和脚本语言中高效地应用正则表达式
      ·学习如何验证和格式化输入
      ·操纵单词、行、特殊字符和数值
      ·找到在URL、路径、标记和数据交换中使用正则表达式的方法
      ·学习更高级的正则表达式特性
      ·理解在不同语言中正则表达式的应用程序接口、语法和行为的不同
      ·针对特定需要,编写更加优化的正则表达式
      无论你是初学者还是经验丰富的用户,《正则表达式Cookbook》都将有助于你对这一独特而不可替代的工具的理解。你将学到功能强大的新技巧,避免和语言相关的陷阱,利用这一经过实践检验的方法解决现实世界中的难题,从而节省宝贵的时间。   JanGoyvaerts,经营JustGreatSoftware软件公司,在这家公司他负责设计和开发一些最流行的正则表达式软件。
      StevenLevithan,是一位JavaScript正则表达式权威专家,同时他还负责一个以正则表达式内容为中心的流行博客。 Preface
    1.IntroductiontoRegularExpressions
    RegularExpressionsDefined
    SearchingandReplacingwithRegularExpressions
    ToolsforWorkingwithRegularExpressions

    2.BasicRegularExpressionSkills
    2.1MatchLiteralText
    2.2MatchNonprintableCharacters
    2.3MatchOneofManyCharacters
    2.4MatchAnyCharacter
    2.5MatchSomethingattheStartand/ortheEndofaLine
    2.6MatchWholeWords
    2.7UnicodeCodePoints,Properties,Blocks,andScripts
    2.8MatchOneofSeveralAlternatives
    2.9GroupandCapturePartsoftheMatch
    2.10MatchPreviouslyMatchedTextAgain
    2.11CaptureandNamePartsoftheMatch
    2.12RepeatPartoftheRegexaCertainNumberofTimes
    2.13ChooseMinimalorMaximalRepetition
    2.14EliminateNeedlessBacktracking
    2.15PreventRunawayRepetition
    2.16TestforaMatchWithoutAddingIttotheOverallMatch
    2.17MatchOneofTwoAlternativesBasedonaCondition
    2.18AddCommentstoaRegularExpression
    2.19InsertLiteralTextintotheReplacementText
    2.20InserttheRegexMatchintotheReplacementText
    2.21InsertPartoftheRegexMatchintotheReplacementText
    2.22InsertMatchContextintotheReplacementText

    3.ProgrammingwithRegularExpressions
    ProgrammingLanguagesandRegexFlavors
    3.1LiteralRegularExpressionsinSourceCode
    3.2ImporttheRegularExpressionLibrary
    3.3CreatingRegularExpressionObjects
    3.4SettingRegularExpressionOptions
    3.5TestWhetheraMatchCanBeFoundWithinaSubjectString
    3.6TestWhetheraRegexMatchestheSubjectStringEntirely
    3.7RetrievetheMatchedText
    3.8DeterminethePositionandLengthoftheMatch
    3.9RetrievePartoftheMatchedText
    3.10RetrieveaListofAllMatches
    3.11IterateoverAllMatches
    3.12ValidateMatchesinProceduralCode
    3.13FindaMatchWithinAnotherMatch
    3.14ReplaceAllMatches
    3.15ReplaceMatchesReusingPartsoftheMatch
    3.16ReplaceMatcheswithReplacementsGeneratedinCode
    3.17ReplaceAllMatchesWithintheMatchesofAnotherRegex
    3.18ReplaceAllMatchesBetweentheMatchesofAnotherRegex
    3.19SplitaString
    3.20SplitaString,KeepingtheRegexMatches
    3.21SearchLinebyLine

    4.ValidationandFormatting
    4.1ValidateEmailAddresses
    4.2ValidateandFormatNorthAmericanPhoneNumbers
    4.3ValidateInternationalPhoneNumbers
    4.4ValidateTraditionalDateFormats
    4.5AccuratelyValidateTraditionalDateFormats
    4.6ValidateTraditionalTimeFormats
    4.7ValidateISO8601DatesandTimes
    4.8LimitInputtoAlphanumericCharacters
    4.9LimittheLengthofText
    4.10LimittheNumberofLinesinText
    4.11ValidateAffirmativeResponses
    4.12ValidateSocialSecurityNumbers
    4.13ValidateISBNs
    4.14ValidateZIPCodes
    4.15ValidateCanadianPostalCodes
    4.16ValidateU.K.Postcodes
    4.17FindAddresseswithPostOfficeBoxes
    4.18ReformatNamesFrom“FirstNameLastName”to“LastName,FirstName”
    4.19ValidateCreditCardNumbers
    4.20EuropeanVATNumbers

    5.Words,Lines,andSpecialCharacters
    5.1FindaSpecificWord
    5.2FindAnyofMultipleWords
    5.3FindSimilarWords
    5.4FindAllExceptaSpecificWord
    5.5FindAnyWordNotFollowedbyaSpecificWord
    5.6FindAnyWordNotPrecededbyaSpecificWord
    5.7FindWordsNearEachOther
    5.8FindRepeatedWords
    5.9RemoveDuplicateLines
    5.10MatchCompleteLinesThatContainaWord
    5.11MatchCompleteLinesThatDoNotContainaWord
    5.12TrimLeadingandTrailingWhitespace
    5.13ReplaceRepeatedWhitespacewithaSingleSpace
    5.14EscapeRegularExpressionMetacharacters

    6.Numbers
    6.1IntegerNumbers
    6.2HexadecimalNumbers
    6.3BinaryNumbers
    6.4StripLeadingZeros
    6.5NumbersWithinaCertainRange
    6.6HexadecimalNumbersWithinaCertainRange
    6.7FloatingPointNumbers
    6.8NumberswithThousandSeparators
    6.9RomanNumerals

    7.URLs,Paths,andInternetAddresses
    7.1ValidatingURLs
    7.2FindingURLsWithinFullText
    7.3FindingQuotedURLsinFullText
    7.4FindingURLswithParenthesesinFullText
    7.5TurnURLsintoLinks
    7.6ValidatingURNs
    7.7ValidatingGenericURLs
    7.8ExtractingtheSchemefromaURL
    7.9ExtractingtheUserfromaURL
    7.10ExtractingtheHostfromaURL
    7.11ExtractingthePortfromaURL
    7.12ExtractingthePathfromaURL
    7.13ExtractingtheQueryfromaURL
    7.14ExtractingtheFragmentfromaURL
    7.15ValidatingDomainNames
    7.16MatchingIPv4Addresses
    7.17MatchingIPv6Addresses
    7.18ValidateWindowsPaths
    7.19SplitWindowsPathsintoTheirParts
    7.20ExtracttheDriveLetterfromaWindowsPath
    7.21ExtracttheServerandSharefromaUNCPath
    7.22ExtracttheFolderfromaWindowsPath
    7.23ExtracttheFilenamefromaWindowsPath
    7.24ExtracttheFileExtensionfromaWindowsPath
    7.25StripInvalidCharactersfromFilenames

    8.MarkupandDataInterchange
    8.1FindXML-StyleTags
    8.2Replace[b]Tagswith[strong]
    8.3RemoveAllXML-StyleTagsExcept[em]and[strong]
    8.4MatchXMLNames
    8.5ConvertPlainTexttoHTMLbyAdding[p]andTags
    8.6FindaSpecificAttributeinXML-StyleTags
    8.7AddacellspacingAttributeto[table]TagsThatDoNotAlreadyIncludeIt
    8.8RemoveXML-StyleComments
    8.9FindWordsWithinXML-StyleComments
    8.10ChangetheDelimiterUsedinCSVFiles
    8.11ExtractCSVFieldsfromaSpecificColumn
    8.12MatchINISectionHeaders
    8.13MatchINISectionBlocks
    8.14MatchININame-ValuePairs
    Index
  • 内容简介:
      《正则表达式Cookbook(影印版)》提供了超过100条的锦囊妙计,帮助你利用正则表达式处理数据、操纵文本。每位程序员都能找到正则表达式的用武之地,但想要充分发挥它的威力却未必容易。纵使经验丰富的用户也常会遇到性能不佳、误判、漏判或者令人费解的错误。《正则表达式Cookbook》对涉及此工具的最常见任务做了逐步讲解,此外还包括在C#、Java、JavaScript、Perl、PHP、Python、Ruby和VB.NET语言中使用正则表达式的诀窍。
      阅读《正则表达式Cookbook(影印版)》,你将:
      ·通过简洁的教程理解正则表达式的基本原理
      ·在多种编程和脚本语言中高效地应用正则表达式
      ·学习如何验证和格式化输入
      ·操纵单词、行、特殊字符和数值
      ·找到在URL、路径、标记和数据交换中使用正则表达式的方法
      ·学习更高级的正则表达式特性
      ·理解在不同语言中正则表达式的应用程序接口、语法和行为的不同
      ·针对特定需要,编写更加优化的正则表达式
      无论你是初学者还是经验丰富的用户,《正则表达式Cookbook》都将有助于你对这一独特而不可替代的工具的理解。你将学到功能强大的新技巧,避免和语言相关的陷阱,利用这一经过实践检验的方法解决现实世界中的难题,从而节省宝贵的时间。
  • 作者简介:
      JanGoyvaerts,经营JustGreatSoftware软件公司,在这家公司他负责设计和开发一些最流行的正则表达式软件。
      StevenLevithan,是一位JavaScript正则表达式权威专家,同时他还负责一个以正则表达式内容为中心的流行博客。
  • 目录:
    Preface
    1.IntroductiontoRegularExpressions
    RegularExpressionsDefined
    SearchingandReplacingwithRegularExpressions
    ToolsforWorkingwithRegularExpressions

    2.BasicRegularExpressionSkills
    2.1MatchLiteralText
    2.2MatchNonprintableCharacters
    2.3MatchOneofManyCharacters
    2.4MatchAnyCharacter
    2.5MatchSomethingattheStartand/ortheEndofaLine
    2.6MatchWholeWords
    2.7UnicodeCodePoints,Properties,Blocks,andScripts
    2.8MatchOneofSeveralAlternatives
    2.9GroupandCapturePartsoftheMatch
    2.10MatchPreviouslyMatchedTextAgain
    2.11CaptureandNamePartsoftheMatch
    2.12RepeatPartoftheRegexaCertainNumberofTimes
    2.13ChooseMinimalorMaximalRepetition
    2.14EliminateNeedlessBacktracking
    2.15PreventRunawayRepetition
    2.16TestforaMatchWithoutAddingIttotheOverallMatch
    2.17MatchOneofTwoAlternativesBasedonaCondition
    2.18AddCommentstoaRegularExpression
    2.19InsertLiteralTextintotheReplacementText
    2.20InserttheRegexMatchintotheReplacementText
    2.21InsertPartoftheRegexMatchintotheReplacementText
    2.22InsertMatchContextintotheReplacementText

    3.ProgrammingwithRegularExpressions
    ProgrammingLanguagesandRegexFlavors
    3.1LiteralRegularExpressionsinSourceCode
    3.2ImporttheRegularExpressionLibrary
    3.3CreatingRegularExpressionObjects
    3.4SettingRegularExpressionOptions
    3.5TestWhetheraMatchCanBeFoundWithinaSubjectString
    3.6TestWhetheraRegexMatchestheSubjectStringEntirely
    3.7RetrievetheMatchedText
    3.8DeterminethePositionandLengthoftheMatch
    3.9RetrievePartoftheMatchedText
    3.10RetrieveaListofAllMatches
    3.11IterateoverAllMatches
    3.12ValidateMatchesinProceduralCode
    3.13FindaMatchWithinAnotherMatch
    3.14ReplaceAllMatches
    3.15ReplaceMatchesReusingPartsoftheMatch
    3.16ReplaceMatcheswithReplacementsGeneratedinCode
    3.17ReplaceAllMatchesWithintheMatchesofAnotherRegex
    3.18ReplaceAllMatchesBetweentheMatchesofAnotherRegex
    3.19SplitaString
    3.20SplitaString,KeepingtheRegexMatches
    3.21SearchLinebyLine

    4.ValidationandFormatting
    4.1ValidateEmailAddresses
    4.2ValidateandFormatNorthAmericanPhoneNumbers
    4.3ValidateInternationalPhoneNumbers
    4.4ValidateTraditionalDateFormats
    4.5AccuratelyValidateTraditionalDateFormats
    4.6ValidateTraditionalTimeFormats
    4.7ValidateISO8601DatesandTimes
    4.8LimitInputtoAlphanumericCharacters
    4.9LimittheLengthofText
    4.10LimittheNumberofLinesinText
    4.11ValidateAffirmativeResponses
    4.12ValidateSocialSecurityNumbers
    4.13ValidateISBNs
    4.14ValidateZIPCodes
    4.15ValidateCanadianPostalCodes
    4.16ValidateU.K.Postcodes
    4.17FindAddresseswithPostOfficeBoxes
    4.18ReformatNamesFrom“FirstNameLastName”to“LastName,FirstName”
    4.19ValidateCreditCardNumbers
    4.20EuropeanVATNumbers

    5.Words,Lines,andSpecialCharacters
    5.1FindaSpecificWord
    5.2FindAnyofMultipleWords
    5.3FindSimilarWords
    5.4FindAllExceptaSpecificWord
    5.5FindAnyWordNotFollowedbyaSpecificWord
    5.6FindAnyWordNotPrecededbyaSpecificWord
    5.7FindWordsNearEachOther
    5.8FindRepeatedWords
    5.9RemoveDuplicateLines
    5.10MatchCompleteLinesThatContainaWord
    5.11MatchCompleteLinesThatDoNotContainaWord
    5.12TrimLeadingandTrailingWhitespace
    5.13ReplaceRepeatedWhitespacewithaSingleSpace
    5.14EscapeRegularExpressionMetacharacters

    6.Numbers
    6.1IntegerNumbers
    6.2HexadecimalNumbers
    6.3BinaryNumbers
    6.4StripLeadingZeros
    6.5NumbersWithinaCertainRange
    6.6HexadecimalNumbersWithinaCertainRange
    6.7FloatingPointNumbers
    6.8NumberswithThousandSeparators
    6.9RomanNumerals

    7.URLs,Paths,andInternetAddresses
    7.1ValidatingURLs
    7.2FindingURLsWithinFullText
    7.3FindingQuotedURLsinFullText
    7.4FindingURLswithParenthesesinFullText
    7.5TurnURLsintoLinks
    7.6ValidatingURNs
    7.7ValidatingGenericURLs
    7.8ExtractingtheSchemefromaURL
    7.9ExtractingtheUserfromaURL
    7.10ExtractingtheHostfromaURL
    7.11ExtractingthePortfromaURL
    7.12ExtractingthePathfromaURL
    7.13ExtractingtheQueryfromaURL
    7.14ExtractingtheFragmentfromaURL
    7.15ValidatingDomainNames
    7.16MatchingIPv4Addresses
    7.17MatchingIPv6Addresses
    7.18ValidateWindowsPaths
    7.19SplitWindowsPathsintoTheirParts
    7.20ExtracttheDriveLetterfromaWindowsPath
    7.21ExtracttheServerandSharefromaUNCPath
    7.22ExtracttheFolderfromaWindowsPath
    7.23ExtracttheFilenamefromaWindowsPath
    7.24ExtracttheFileExtensionfromaWindowsPath
    7.25StripInvalidCharactersfromFilenames

    8.MarkupandDataInterchange
    8.1FindXML-StyleTags
    8.2Replace[b]Tagswith[strong]
    8.3RemoveAllXML-StyleTagsExcept[em]and[strong]
    8.4MatchXMLNames
    8.5ConvertPlainTexttoHTMLbyAdding[p]andTags
    8.6FindaSpecificAttributeinXML-StyleTags
    8.7AddacellspacingAttributeto[table]TagsThatDoNotAlreadyIncludeIt
    8.8RemoveXML-StyleComments
    8.9FindWordsWithinXML-StyleComments
    8.10ChangetheDelimiterUsedinCSVFiles
    8.11ExtractCSVFieldsfromaSpecificColumn
    8.12MatchINISectionHeaders
    8.13MatchINISectionBlocks
    8.14MatchININame-ValuePairs
    Index
查看详情
相关图书 / 更多
O'Reilly:正则表达式Cookbook(影印版)
O'Reilly:WCF编程(第2版)
[美]罗威 著;张逸、徐宁 译
O'Reilly:正则表达式Cookbook(影印版)
O'sLittleGuidetoFindingYourTruePurpose
Magazine、The Editors of O、the Oprah 著
O'Reilly:正则表达式Cookbook(影印版)
O'Reilly:RESTful.NET应用(影印版)
[美]费尔南德斯(Flanders.J.) 著
O'Reilly:正则表达式Cookbook(影印版)
O'Reilly:Windows PowerShell应用手册
[美]霍麦斯 著;赵松德 译
O'Reilly:正则表达式Cookbook(影印版)
O'Keeffe
Britta Benke 著
O'Reilly:正则表达式Cookbook(影印版)
O'Keeffe (欧姬芙)
Britta Benke
O'Reilly:正则表达式Cookbook(影印版)
O'ReillyFactorforKidsThe
Bill O'Reilly、Charles Flowers 著
O'Reilly:正则表达式Cookbook(影印版)
O'Reilly:深入浅出Rails(影印版)
[美]格里菲思 著
O'Reilly:正则表达式Cookbook(影印版)
O'Reilly:软件之道:软件开发争议问题剖析
[美]Andy、Greg Wilson 著;鲍央舟、张玳、沈欢星 译
O'Reilly:正则表达式Cookbook(影印版)
O'Reilly:团队之美(影印版)
[美]斯特尔曼、[美]格林尼 著
O'Reilly:正则表达式Cookbook(影印版)
O'Reilly:Perl语言入门 第7版(中文版)
Randal、L.Schwartz 著
O'Reilly:正则表达式Cookbook(影印版)
O'Reilly:容量规划的艺术(影印版)
[美]奥斯帕 著
您可能感兴趣 / 更多
O'Reilly:正则表达式Cookbook(影印版)
争吵的恋人:我们为什么相爱,又为什么争吵
[美]约翰·金,[美]瓦妮莎·贝内特
O'Reilly:正则表达式Cookbook(影印版)
蒙特卡洛的密码锁(数学大师的逻辑课) 文教科普读物 [美]雷蒙德·m.斯穆里安(raymondm.smullyan)
[美]雷蒙德·m.斯穆里安(raymondm.smullyan)
O'Reilly:正则表达式Cookbook(影印版)
全新正版图书 新任管理者快速成长蕾切尔·帕切科浙江教育出版社9787572277214
[美]蕾切尔· 帕切科
O'Reilly:正则表达式Cookbook(影印版)
《生命大设计.重构》(关于“生命创造现实”这一惊人事实,独特且完整的科学探索与哲学诠释)
[美]鲍勃·伯曼 著;杨泓 译;[美]罗伯特·兰札;马泰·帕夫希奇(斯洛文尼亚)
O'Reilly:正则表达式Cookbook(影印版)
杰出投资者的底层认知:成功投资与明智创富的10个茅塞顿开之问(《聪明的投资者》新时代精华版)
[美]J.戴维·斯坦恩(J.David Stein) 著;刘寅龙 译;庞鑫
O'Reilly:正则表达式Cookbook(影印版)
浴缸里的海洋
[美]塞思·菲什曼
O'Reilly:正则表达式Cookbook(影印版)
新视界文库-生命故事:生物学上的伟大发现
[美]肖恩·B.卡罗尔
O'Reilly:正则表达式Cookbook(影印版)
洛丽塔原型:小说《洛丽塔》背后的萨莉?霍纳绑架案
[美]萨拉·魏恩曼 著;真故图书 出品
O'Reilly:正则表达式Cookbook(影印版)
托尔斯泰
[美]莉莎·克纳普(Liza Knapp)
O'Reilly:正则表达式Cookbook(影印版)
奇迹之门 《纽约时报》畅销书作家写给孩子的一封“成长家书”。让父母的爱与肯定,成为孩子探索世界的底气。拥抱成长的不确定性,打开通向无限可能的“奇迹之门”。
[美]艾莉森·麦基/文 (美) 柳泰恩 图
O'Reilly:正则表达式Cookbook(影印版)
全球通史(全六册)(另一个角度的“全球通史”,不一样的视野与新知。以地理为骨,历史为肉,一部超级丰满的世界通史。)
[美]塞缪尔·古德里奇 译者:冷惠玲、冯佳娜、王小忠、孙丽霞、李江艳
O'Reilly:正则表达式Cookbook(影印版)
《星际争霸》动画影像艺术
[美]罗伯特·布鲁克斯