Regex Series: Even Number?

Published by Helen Yu in

Write a regular expression that matches only an even number. Numbers will be presented as strings.

Examples

"2341" ➞ false

"132" ➞ true

"29" ➞ false

"5578" ➞ true

Notes

This challenge is designed for RegEx only.

Watch a quick demo on how Edabit works.