Re: Find IP with a RegExp

From: Alexander Bartolich (alexander.bartolich_at_gmx.at)
Date: 01/09/04


Date: 9 Jan 2004 15:16:05 GMT

begin followup to Mark A. Odell:
> I'll answer this if you can tell me what this has to do with
> the C language.

Apart from time travel C is not very useful. Use perl instead.

$ perl -ne 'm/\d+\.\d+\.\d+\.\d+/ && print $&' < data
200.228.69.237

-- 
Für Google, Tux und GPL!


Relevant Pages

  • Re: Find IP with a RegExp
    ... > begin followup to Mark A. Odell: ... Why do people keep posting broken perl "solutions" to comp.lang.c? ...
    (comp.lang.c)
  • Re: Find IP with a RegExp
    ... > begin followup to Mark A. Odell: ... >>the C language. ... Funny that you'll still need C to compile the PERL ...
    (comp.lang.c)
  • Re: HTTP basic authentication
    ... "Mark A. Odell" wrote in message ... >> I have this project on an embbeded system where I've programmed a very ... This is not a question about the C language. ...
    (comp.lang.c)
  • Re: Jiu Jitsu Strategies: Sports vs Reality
    ... when someone speaks with a "french" accent you can tell they have been ... to grammar school. ... "The ability to vary your language according to the situation is often ... The mark of an educated person is varying their language. ...
    (rec.martial-arts)
  • Re: Fonts folder gone crazy, Help please
    ... The option to change back and forth is always available, and I don't think the other language setting is going to be out of reach in any way you need to worry about. ... Mark L. Ferguson MS-MVP ... Several repairmen couldn't fix it even though window is active in full and all programs are alive. ... I had the provision of "complex script" completely removed from the computer so the machine will completely forget the reverse direction setting but it didn't help. ...
    (microsoft.public.windowsxp.help_and_support)