Could some one let me know the regular expression to match wild card entries in an Ip address.
Ex:I need to match * also in any of the octets like *.*.*.* or *.121.1.1 or 12.*.*.* or 12.12.*.* or 12.12.12.* etc

The following regex which iam using valides for 0-255 check only for each octet in the Ipaddress.I need to match above pattern too.
+ "([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\."
+ "([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\."
+ "([01]?\\d\\d?|2[0-4]\\d|25[0-5])$

Any immediate help reg this is highly appreciated.