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

Regex — Example 200

Quick explanation + ready code for: Regex.

Shell Regex Back to examples
Back to language
Syntax: Regex in Shell. ID: #200

Code

echo "DrSchool9" | grep -E "[A-Za-z]+"

Notes

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