re

 0    14 flashcards    sir
download mp3 print play test yourself
 
Question język polski Answer język polski
Returns a list containing all matches
start learning
findall
Returns a Match object if there is a match anywhere in the string
start learning
search
Returns a list where the string has been split at each match
start learning
split
Replaces one or many matches with a string
start learning
sub
Every character from the set.
start learning
[]
"[a-m]"
Signals a special sequence (can also be used to escape special characters)
start learning
\
"\d"
Any character (except newline character)
start learning
.
"he... o"
Starts with
start learning
^
"^hello"
Ends with
start learning
$
"world$"
Zero or more occurrences
start learning
*
"aix*"
One or more occurrences
start learning
+
"aix+"
Exactly the specified number of occurrences
start learning
{}
"al{2}"
Either or
start learning
|
"falls|stays"
Capture and group
start learning
()

You must sign in to write a comment