新書推薦:
《
双城史
》
售價:HK$
110.9
《
冯友兰和青年谈心系列:不是问题的问题(哲学大师冯友兰和年轻人谈心,命运解读)
》
售價:HK$
55.8
《
月与蟹(青鲤文库)荣获第144届直木奖,天才推理作家经典作品全新译本。一部青春狂想曲,带你登上心理悬疑之巅。
》
售價:HK$
50.4
《
索恩丛书·盛清统治下的太监与皇帝
》
售價:HK$
88.5
《
透过器物看历史(全6册)
》
售價:HK$
490.6
《
我在台北故宫博物院读名画
》
售價:HK$
109.8
《
尼罗河往事:古埃及文明4000年
》
售價:HK$
76.2
《
一个人·谁也不是·十万人(诺贝尔文学奖得主反思自我的巅峰之作)
》
售價:HK$
54.9
|
內容簡介: |
《正则表达式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
|
|