Python Regex Matching Multiple Lines
I'm trying to get the contents of a
- tag from a webpage in python. I used the following code: matchResult = re.search(r'
- (.*)
Solution 1:
Include the re.DOTALL
option as well, that will allow the .
character to match newlines.
Post a Comment for "Python Regex Matching Multiple Lines"