in reply to Adding an Entire Class B IP Range to an Array

TMTOWTDI. Let's say we made this into the string "192.168.[1:254].[1:254]". Now we have something that this snippet could handle quite cleanly. Adding additional dynamic octets is pretty simple, too.