Parsing With Regular Expressions 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()
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()