05-12-2007, 01:20 PM
Quote:'split up' to a readable text
? Why it is not readable?
To find all, use flag 4. Then array will have two dimensions. First - submatch number, second - match number.
int i
for i 0 a.len
;out a[1 i]
;out a[2 i]
;out a[3 i]
If you wnat to split to the numbers, the reg ex string should be
"(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})"
Quote:What do you mean by that, the regex gives what to search for and to populate the string with isn't it?
Yes, but it also can do more. If you enclose some parts in (), string parts matching these enclosed parts will be stored into array elements. That is, findrx also can be used to split strings.