Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
import re text = "Hello World" # re.DOTALL makes . match newlines too match = re.search(r"Hello.World", text, re.DOTALL) print(match.group()) # Hello World # re.IGNORECASE print(re.findall(r"hello", text, re.I)) # ["Hello"]
Result
Open