Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
December 18, 2014, 7:20 pm
rate this thread
Re: what is the perl expression to skip characters
Strong smell of homework here!
As well as learning to use Perl you should learn to ask good questions.
"Skip characters" could mean lots of things ... move past them in a
list? Remove them from a string?
But I think you probably mean "How do I remove all the characters except
the ones that look like an IP address (though you don't say anything
about the trailing bracket and brace).
In that case try the regex \d+\.\d+\.\d+\.\d+ in a match statement and
extract the matched text.
Henry Law Manchester, England