by SamHasler » Thu Dec 23, 2004 8:27 am
I'm not sure that last find is correct, I think it could do the wrong thing on some inputs, e.g. 10.198.68.33, 10.198.68.333, 10.198.68.343 or 10.198.68.533
I think it should be:
Find RegExp "(10[.]198[.]68[.])([0-9]+)([0-9]+)3"
(+ instead of * so they can't match zero characters)
but I'm having difficulty testing it because the macro is crashing UE on some inputs. e.g. a file containing these lines:
10.198.68.153
10.198.68.73
10.198.68.3
10.198.68.33
10.198.68.32
10.198.68.23
10.198.68.333
10.198.68.332
10.198.68.323
10.198.68.322
10.198.68.233
10.198.68.232
10.198.68.223
10.198.68.223
10.198.68.222
10.198.68.22
10.198.68.2
10.198.68.343
10.198.68.533
(note file ends with a line return. The last entry will not match the first two finds in the macro otherwise)
It appears to be caused by 10.198.68.333 or 10.198.68.332 (both must be followed by another character)