Regex for Ethereum Addresses
A regular expression for matching Ethereum addresses must check for a leading [r]0x[/r] followed by a random string of 40 hexadecimal characters (lowercase a-f, uppercase A-F, and numbers 0-9). These expressions are not case sensitive, although a capitalized checksum version exists that refers to the same account but provides an added layer of security.