Also something else I am not quite clear on, and maybe this is a stupid question, but will this check every string in the file one line at a time and be able to locate a string in the form [#.#.#.#] Regardless of what else is on that line?

I suppose what I am asking is if the file I am reading is something like:

Will it be able to extract that string from each line, or does the file have to be of the form:

1 [#.#.#.#] 2 [#.#.#.#] 3 [#.#.#.#]

I guess essentially what I am asking is, does this check every string on a line regardless of what all is on that line to check and see if the string is of that form, or will this only check one string per line?

Also something else I am not quite clear on, and maybe this is a stupid question, but will this check every string in the file one line at a time and be able to locate a string in the form [#.#.#.#] Regardless of what else is on that line?

I suppose what I am asking is if the file I am reading is something like:

Will it be able to extract that string from each line, or does the file have to be of the form:

1 [#.#.#.#] 2 [#.#.#.#] 3 [#.#.#.#]

I guess essentially what I am asking is, does this check every string on a line regardless of what all is on that line to check and see if the string is of that form, or will this only check one string per line?

No, the code assumes only one [#.#.#.#] is on the line. This will extract multiple instances.