in reply to Re: Extracting IP address from large text file.
in thread Extracting IP address from large text file.
The little red plus sign (note that it is, indeed, red in the reply above) at the beginning of +9{1,3}: is a line-wrap flag and is not intended to be included in the regex. The proper way to write this piece of the regex would be [0-9]{1,3} or better yet \d{1,3}
Also: Please, Please, Puh-leeeeze use code tags. Please see Markup in the Monastery.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extracting IP address from large text file.
by Monkomatic (Sexton) on Oct 19, 2010 at 23:26 UTC | |
by AnomalousMonk (Archbishop) on Oct 20, 2010 at 12:01 UTC |