Regex Series: String Contains at Least One Digit

Published by Helen Yu in

Write a regular expression that matches a string if it contains at least one digit.

Examples

"c8" ➞ true

"23cc4" ➞ true

"abwekz" ➞ false

"sdfkxi" ➞ false

Notes

This challenge is designed to use RegEx only.

Watch a quick demo on how Edabit works.