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

Regex — Example 193

Quick explanation + ready code for: Regex.

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

Code

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

Notes

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