هوشمندترین راه برای یادگیری عبارات منظم پایتون: بهترین راز حفظ بهرهوری استادان کد
The Smartest Way to Learn Python Regular Expressions. Learn the Best-Kept Productivity Secret of Code Masters
معرفی کتاب «هوشمندترین راه برای یادگیری عبارات منظم پایتون: بهترین راز حفظ بهرهوری استادان کد» (با عنوان لاتین The Smartest Way to Learn Python Regular Expressions. Learn the Best-Kept Productivity Secret of Code Masters) نوشتهٔ Christian Mayer، Lukas Rieger و Zohaib Riaz، منتشرشده توسط نشر 2021 در سال 2021. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «هوشمندترین راه برای یادگیری عبارات منظم پایتون: بهترین راز حفظ بهرهوری استادان کد» در دستهٔ برنامهنویسی قرار دارد.
Table of Contents 2 Introduction 11 Applications 17 About 34 Puzzle Learning 38 Basics 45 What's a Regex Pattern? 46 The Method to Find All Matches 50 Summary 52 Special Symbols 54 Literal Characters 54 Summary 61 Character Sets 63 What's a Character Set? 63 Negative Character Set 65 Summary 66 Intermezzo: Match Function 68 Methods re.match() vs re.findall() 72 re.fullmatch() 73 Methods re.fullmatch() vs re.match() 76 Dot Regex 78 What's the Dot Regex? 78 Intermezzo: Flags 81 Match Newline 85 Match the Dot Character 86 Summary 88 Asterisk Quantifier 91 What's the Asterisk Quantifier? 91 Asterisk Example 92 Match the Asterisk Character 94 Summary 95 Plus Quantifier 97 What's the Plus Quantifier? 97 Plus (+) Quantifiers Examples 98 Match the Plus (+) Symbol 100 Summary 101 ? Quantifier 104 Definition Question Mark 104 Summary 108 Quantifier Differentiation 112 Asterisk vs Plus 113 Asterisk vs Question Mark 113 Question Mark vs Plus 114 Greediness 116 Regex Quantifiers 116 Greedy Match 119 Non-Greedy Match 120 Non-Greedy Question Mark (??) 121 Non-Greedy Asterisk (*?) 122 Non-Greedy Plus (+?) 122 Greedy vs Non-Greedy 123 Which is Faster? 124 Summary 127 Line and String Boundaries 129 Start-of-String (^) 129 Start-of-Line (^) 130 End of String ($) 132 End of Line ($) 132 Intermezzo: Regex Methods 134 Match Caret (^) or Dollar ($) Symbols 138 Summary 139 OR Regex 142 What's the OR | Operator? 142 Examples 143 Nested OR 145 Character Set OR 146 Match the Vertical Line | 147 Summary 148 AND Regex 150 Ordered Regex AND Operator 151 Unordered Regex AND Operator 152 Summary 155 NOT Regex 158 Matching Groups 161 Simple Matching Groups 161 First Matching Group 163 Other Matching Groups 164 Named Groups 166 Non-Capturing Groups 167 Positive Lookahead 169 Negative Lookahead 171 Group Flags 172 Summary 174 Split Method 177 re.split() 177 Minimal Example 179 Maxsplit Argument 180 Optional Flag Argument 181 Regex Versus String Split 182 Summary 183 Substitution Method 185 re.sub() 185 Minimal Example 187 count Argument 189 Optional Flag Argument 190 Regex Sub Versus String Replace 191 Remove Regex Pattern 192 Summary 193 Compile Method 195 re.compile() 195 Regular Expression Object 197 Discussion 198 Summary 202 Bonus Puzzles 205 Final Remarks 234 Where to go from here? 235
دانلود کتاب هوشمندترین راه برای یادگیری عبارات منظم پایتون: بهترین راز حفظ بهرهوری استادان کد