in reply to Re: Re: Regex Question
in thread Regex Question
Given the format of your data, you would be much better of using "paragraph mode". Ie. Setting $/ to '' rather than undef. The each read will give you exactly what (I think) you are trying to acheive with your regex.
Try this on your data to see what I mean, the see perlvar $INPUT_RECORD_SEPERATOR for the details.
#! perl -slw use strict; local $/ = ''; while( <DATA> ) { print "'$_'"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Regex Question
by set_uk (Pilgrim) on Jun 03, 2003 at 11:51 UTC | |
by BrowserUk (Patriarch) on Jun 03, 2003 at 12:53 UTC |