新書推薦:
《
广东当代金融史:全三册
》
售價:HK$
717.6
《
养育的觉醒:全面激发孩子自驱力,教你如何心平气和做妈妈
》
售價:HK$
58.8
《
1368:历史岔道口的抉择与国运盛衰
》
售價:HK$
69.6
《
全球城市发展报告2023:基于全球城市网络的合作与竞争
》
售價:HK$
273.6
《
为什么只见树木不见森林:从简单现象到复杂系统
》
售價:HK$
94.8
《
大英帝国的兴衰:跨越海洋 征服世界
》
售價:HK$
117.6
《
意大利文艺复兴新艺术史
》
售價:HK$
958.8
《
2023年《咬文嚼字》合订本(精)
》
售價:HK$
93.6
|
內容簡介: |
《正则表达式Cookbook(第2版)(影印版)》通过细致的讲解来学习正则表达的基础知识,根据代码清单,使用你所选择的语言来实现正则表达式,理解正则表达式在不同语言中的差异,在多个实例中验证和格式化常见的用户输入,查找和操纵单词、特殊字符以及多行文本,判断整数、浮点数和其他数字格式。
|
關於作者: |
高瓦特斯(JanGoyvaerts),管理着JustGreatSoftware公司,他设计和开发了一些最流行的正则表达式软件。
利维森(StevenLevithan),杰出的JavaScript正则表达式专家,同时他也是多个开源正则表达式工具的编写者。
|
目錄:
|
Preface
1.IntroductiontoRegularExpressions
RegularExpressionsDefined
SearchandReplacewithRegularExpressions
ToolsforWorkingwithRegularExpressions
2.BasicRegularExpressionSkills
2.1MatchLiteralText
2.2MatchNonprintableCharacters
2.3MatchOneofManyCharacters
2.4MatchAnyCharacter
2.5MatchSomethingattheStartandortheEndofaLine
2.6MatchWholeWords
2.7UnicodeCodePoints,Categories,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.3CreateRegularExpressionObjects
3.4SetRegularExpressionOptions
3.5TestIfaMatchCanBeFoundWithinaSubjectString
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
3.22ConstructaParser
4.ValidationandFormatting
4.1ValidateEmailAddresses
4.2ValidateandFormatNorthAmericanPhoneNumbers
4.3ValidateInternationalPhoneNumbers
4.4ValidateTraditionalDateFormats
4.5ValidateTraditionalDateFormats,ExcludingInvalidDates
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
……
5.Words,Lines,andSpeaaICharacters
6.Numbers
7.SourceCodeandLogFiles
8.URLs,Paths,andlnternetAddresses
9.MarkupandDataFormats
|
|