in reply to Regex Question

Remember that you are substituting the entire matched pattern with nothing. Try this:
$text=~s/([^\n])\n([^\n])/$1$2/g;

---- Coyote (aka: Rich Anderson)

Replies are listed 'Best First'.
Re: Re: Regex Question
by merlyn (Sage) on Jan 08, 2001 at 01:26 UTC