Skip to content
Python Lore
    🐍 Python modules        📚 Books
Python Lore

The ultimate Python guide

  • Home
  • Home
Home » Single-Line Mode
Single-Line Mode in Regular Expressions with re.DOTALL
Posted inPython modules re

Single-Line Mode in Regular Expressions with re.DOTALL

Posted inPython modules, reTags: re.DOTALL, Single-Line Mode
Python regex with re.DOTALL flag enables matching multi-line strings, JSON blobs, stack traces, and XML CDATA sections by allowing dot (.) to include newline characters. This simplifies extraction of complex, multi-line data from source code, logs, and markup with non-greedy patterns.
Read More
Copyright 2023-2026 by Python Lore. All rights reserved.
Scroll to Top