I have a file which is having spaces and tabs eg

6veqZN4jRrDoSGdhTFJZmWXQQpGrMvVR5Soks7FYzzg 2012-05-09 20:58:09 + http://maps.googleapis.com/maps/api/staticmap?center=51.59400%2C0.0 +2882&zoom=14&size=320x360&map type=roadmap&markers=icon:http%3A%2F%2Fm.rightmove.co.uk%2Fim%2FRM_Map +_Drop_Pin_Marker_Std-20x23.png%7C51.59400%2C0.02882&sensor=false&clie +nt=gme-rightmove&signature=up NK32H8P4dnfDFKYwhB30aDXjU= Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 +_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 +Mobile/9A406 Safari/7534.48.3 GET 200 image/png
What I want is that URLs that actually start with https://m.rightmove.co.uk/

Code which I am developing is as follows
#!/usr/local/bin/perl open fh, ">ash.txt"; open (MYFILE,'16_hr_file_Tmobile_rightmove'); while (<MYFILE>) { chomp; if ($_ =~ m/\thttp:\/\/m.rightmove\.co\.uk/i) ##if ($_ =~ m/\t(http:\/\/m.rightmove\.co\.uk || m.rightmove\.co\.uk)/ +i) ###if ($_ =~ m/\tm.rightmove\.co\.uk/i) ##if ($_ =~ m/m.rightmove\.co\.uk/i) { print fh "$_\n"; } ###print "$_\n"; } close (MYFILE);

In reply to Please tell by ashish_sun123

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.