Kind request for help on a chat parsing matter. My problem is that the chat files sometimes not follow the structure "date user1 user2 chat content" on one line and sometimes the chat content moves to the next line.
i.e:
date user1 user2 chat content\n
continued chat content
because I have many files like that and need to database the records, I want to put the Filename in front of every chat line. I managed to do that with File::find but my problem still remains with the continued chats on the next line.
$lines =~ s/\n/ /g; $lines =~s /(\d{4}-\d{2}-\d{2})/\n$1/g; $newline = "$File::Find::name"."$lines"; print IN "$newline";
I appreciate any suggestions
Million thanks
In reply to Parse chat & File::find by 4perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |