in reply to Re: REPOST problem with multi-line
in thread problem with multi-line
So you're looking for something like this, I think:/^\.(\w+).*$\t+\.\w+\W+(\w+).*$/m
I'm going on this assumption since I have NO real example of your test data..somewords any amount of garbage till a suposed end of line [some number of tabs].nomatchwords matchedwords garbage to eol
I hope this helps.#!/usr/local/bin/perl -w use strict; $|++; $/="\n."; while ( <DATA> ) { print join ' ', /^\.?(\w+).+\n\t+\.\w+\W+(\w+)/; print "\n"; } __DATA__ .this is a line .and this is another line .again, a line. .Yet another line
-- Casey
|
|---|