Re.dotall funktioniert für re.match, aber nicht re.sub? [Duplikat]Python

Python-Programme
Anonymous
 Re.dotall funktioniert für re.match, aber nicht re.sub? [Duplikat]

Post by Anonymous »

Warum stimmt diese erwartet überein, kann aber nicht unterscheiden? Eine einzelne Linie s funktioniert gut. < /P>

import re
s = """
wut"""
print(re.match('\nwut',)
print(re.sub('

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post