Advertisement
Guest User

Untitled

a guest
Jun 5th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Per 0.31 KB | None | 0 0
  1. #!/usr/bin/perl
  2. open(FILE, "<ptinews2.csv");
  3. while(<FILE>)
  4. {
  5.         my($line) = $_;
  6.         chomp($line);
  7.         if($line =~ /\d{1,2}\/\d{1,2}\/\d{4}/)
  8.         {
  9.                 print "\n$line";
  10.         }
  11.         else
  12.         {
  13.                 print $line;
  14.         }
  15. }
  16. #[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement