Parsing With Regular Expressions Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What method takes a string of a text as an argument and looks for a single match to the regular expression that starts at the beginning of the string?

A

.match()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What method takes a regular expression pattern as an argument and compiles the pattern into a regular expression object, but you can later used to find matching text?

A

.compile()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly