I have a file which is having spaces and tabs eg
What I want is that URLs that actually start with https://m.rightmove.co.uk/ Code which I am developing is as follows6veqZN4jRrDoSGdhTFJZmWXQQpGrMvVR5Soks7FYzzg 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
#!/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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |