|
jnelson993 -> RE: Report/script for a range or ranges of IPAddresses (6/5/2008 3:51:37 AM)
|
It's important to understand the bracket wildcard's meaning. These brackets let you specify A range [0-9] means any single character between 0 and 9 or [a-g] means any single characters from a through g A Set [135] means a single character matching a 1, 3 or 5. [adf] means a single character matching an a, d, or f. And you can also put those brackets next to each other to do multiple ranges like [0-9][0-9] matches every number between 00 and 99. So, when you have [241-254] in there...who knows the outcome...I'd guess it would treat it like a set and match on any single character matching 1, 2, 4, 5 or hyphen. So if you're doing 241 - 254 you have to start with 241 and roll the 1's over like an odometer. LIKE .24[1-9] -- 241 - 249 LIKE .25[0-4] -- 250 - 254 As for the parenthesis groupings, depending on what else you have going on in your query, you may need to skip the query designer and finish it by hand. When you start getting advanced with your queries, you have to stop relying on the query designer because it can hurt you more than it can help you and there's lots of stuff it can't do, but WQL can do. It's great for getting you started, but it can be the death of you when you're trying to just tweak something you had working.
|
|
|
|