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(影印版)
亚拉山大的读心术(数学大师的逻辑课) 伦理学、逻辑学 [美]雷蒙德·m.斯穆里安(raymondm.smullyan)
[美]雷蒙德·m.斯穆里安(raymondm.smullyan)
O'Reilly:正则表达式Cookbook(影印版)
纳博科夫精选集第五辑
[美]弗拉基米尔·纳博科夫著
O'Reilly:正则表达式Cookbook(影印版)
九桃盘(美国二十世纪重要女诗人玛丽安·摩尔诗歌精选集,由知名女诗人和女性诗学研究者倪志娟倾情翻译)
[美]玛丽安•摩尔
O'Reilly:正则表达式Cookbook(影印版)
全新正版图书 制造德·戴维尼浙江教育出版社9787572276880
[美]理查德·戴维尼
O'Reilly:正则表达式Cookbook(影印版)
血泪之泣
[美]希瑟·丘·麦克亚当
O'Reilly:正则表达式Cookbook(影印版)
小学生趣味心理学(培养执行技能的40个练习,发展共情能力的46个练习,学会应对焦虑的40个练习 共3册) (美)莎伦·格兰德 王佳妮译
[美]莎伦·格兰德(sharon grand)
O'Reilly:正则表达式Cookbook(影印版)
(当代学术棱镜译丛)艺术批评入门:历史、策略与声音
[美]克尔·休斯顿
O'Reilly:正则表达式Cookbook(影印版)
金钱游戏(划时代增订版):深层透析金融游戏表象之下的规则与黑箱 长达60年盘踞金融畅销榜的现象级作品
[美]亚当·史密斯(Adam Smith) 著;刘寅龙 译
O'Reilly:正则表达式Cookbook(影印版)
矿王谷的黎明:塞拉俱乐部诉莫顿案与美国环境法的转变(精装典藏版)
[美]丹尼尔·P.塞尔米,(Daniel,P.Selmi)
O'Reilly:正则表达式Cookbook(影印版)
体式神话:瑜伽传统故事精粹(第二版) (从30个体式古老起源中汲取灵感与力量,内附精美插图)
[美]阿兰娜·凯瓦娅(Alanna Kaivalya)[荷]阿诸那·范德·库伊(Arjuna van der Kooij)
O'Reilly:正则表达式Cookbook(影印版)
诺奖作家给孩子的阅读课·生命教育(3-9年级,莫言余华的文学启蒙,垫高阅读起点,提升作文能力)
[美]海明威等
O'Reilly:正则表达式Cookbook(影印版)
蚯蚓的日记(全4册)【平装版】
[美]朵琳·克罗宁