Outcodes & Incodes Regular Expression

Outcode - one or two alphabetic characters followed by one or two digts, or one or two characters followed by a digit and a character. Incode - a single digit followed by two characters (excluding C, I, K, M, O and V). Outcode RegEx = \b[A-Za-z]{1,2}\d[A-Za-z\d]?\b Incode Regex = \b(\d[ABD-HJLNP-UW-Zabd-hjlnp-uw-z]{2})\b

[More]

IP Addresses - Regular Expression

IP addresses are made up of four bytes separated by .characters. Each set of digits is one to three digits in length Text - My IP Address is 127.0.0.1. RegEx - (((\d{1,2})|(1\d{2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{2})|(2[0-4]\d)|(25[0-5])). Result - My IP Address is 127.0.0.1. The RegEx makes sure that the range of each set of digits in between 0-255 and does not end with a full stop.

BlogCFC was created by Raymond Camden. This blog is running version 5.9.5.004. Contact Blog Owner