DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Regex — Example 192

Quick explanation + ready code for: Regex.

Python Regex Back to examples
Back to language
Syntax: Regex in Python. ID: #192

Code

import re
print(bool(re.search(r"[A-Za-z]+", "DrSchool16")))

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.