![]() If you'd like to learn more, I recommend the following resources: The above discussion is just a quick (and far from complete) treatment of this large topic. ipynb) with "Python" in their filename by using the " *" wildcard to match any characters in between:įurther Resources on Regular Expressions ¶ If you frequently use the command-line, you are probably familiar with this type of flexible matching with the " *" character, which acts as a wildcard.įor example, we can list all the IPython notebooks (i.e., files with extension. I'll suggest some references for learning more in Further Resources on Regular Expressions.įundamentally, regular expressions are a means of flexible pattern matching in strings. My goal here is to give you an idea of the types of problems that might be addressed using regular expressions, as well as a basic idea of how to use them in Python. Friedl’s Mastering Regular Expressions, 3rd Edition), so it will be hard to do justice within just a single subsection. ![]() Regular expressions are a huge topic there are there are entire books written on the topic (including Jeffrey E.F. The methods of Python's str type give you a powerful set of tools for formatting, splitting, and manipulating string data.īut even more powerful tools are available in Python's built-in regular expression module. You can follow on Twitter and Twitch.Flexible Pattern Matching with Regular Expressions ¶ He has written several books for beginners and makes them freely available at. How to Do P圜on (or any tech conference)Īl Sweigart is a software developer and teaches programming to kids and adults.(Link to the older 1st edition.) Additional Content Appendix C – Answers to the Practice Questions.Appendix A – Installing Third-Party Modules.Chapter 20 – Controlling the Keyboard and Mouse with GUI Automation.Chapter 18 – Sending Email and Text Messages.Chapter 17 – Keeping Time, Scheduling Tasks, and Launching Programs.Chapter 16 – Working with CSV Files and JSON Data.Chapter 15 – Working with PDF and Word Documents.Chapter 14 – Working with Google Spreadsheets.Chapter 13 – Working with Excel Spreadsheets.Chapter 7 – Pattern Matching with Regular Expressions.Chapter 5 – Dictionaries and Structuring Data.Or preview the first 15 course videos for free on YouTube. ![]() Use this link to apply a 60% discount code. This video course follows much (though not all) of the content of the book. ![]() New Book: "The Big Book of Small Python Projects" Learn how in Automate the Boring Stuff with Python. Even if you've never written a line of code, you can make your computer do the grunt work. Step-by-step instructions walk you through each program, and practice projects at the end of each chapter challenge you to improve those programs and use your newfound skills to automate similar tasks.ĭon't spend your time doing work a well-trained monkey could do. Send reminder emails and text notifications.Split, merge, watermark, and encrypt PDFs.Update and format data in Excel spreadsheets of any size.Search the Web and download online content.Create, update, move, and rename files and folders.Search for text in a file or across multiple files.Once you've mastered the basics of programming, you'll create Python programs that effortlessly perform useful and impressive feats of automation to: In Automate the Boring Stuff with Python, you'll learn how to use Python to write programs that do in minutes what would take you hours to do by hand - no prior programming experience required. But what if you could have your computer do them for you? If you've ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. Wil Wheaton, Practical Programming for Total Beginners "I'm having a lot of fun breaking things and then putting them back together, and just remembering the joy of turning a set of instructions into something useful and fun, like I did when I was a kid." Hilary Mason, Data Scientist and Founder of Fast Forward Labs Automate the Boring Stuff with Python frames all of programming as these small triumphs it makes the boring fun." "The best part of programming is the triumph of seeing the machine do something useful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |