Skip to content

Commit

Permalink
REGEX
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashleshk committed Jun 7, 2020
1 parent 18984af commit b17e825
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Binary file added Slides And PDF/Pythonlearn-11-Regex.pptx
Binary file not shown.
18 changes: 18 additions & 0 deletions Slides And PDF/pythonlearn-11-Regex-handout.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Python Regular Expression Quick Guide

^ Matches the beginning of a line
$ Matches the end of the line
. Matches any character
\s Matches whitespace
\S Matches any non-whitespace character
* Repeats a character zero or more times
*? Repeats a character zero or more times
(non-greedy)
+ Repeats a character one or more times
+? Repeats a character one or more times
(non-greedy)
[aeiou] Matches a single character in the listed set
[^XYZ] Matches a single character not in the listed set
[a-z0-9] The set of characters can include a range
( Indicates where string extraction is to start
) Indicates where string extraction is to end

0 comments on commit b17e825

Please sign in to comment.