Hi Alessandro,

On Tue, Apr 13, 2004 at 06:33:21PM +0200, Alessandro Ranellucci wrote:
> On 13-04-2004 at 17:47, Alessandro Ranellucci wrote:
> 
>  >>$Self->{Body} =~ s/(> )?(.{$NewLine}[^\s]*\s)/$2\n/g;
> 
> Actually that line should be as follow to prevent un-quoting of quoted
> text:
> 
> $Self->{Body} =~ s/((> )?.{$NewLine}[^\s]*\s)/$1\n/g;

How about lines with more the $NewLine chars? Do you know an regexp
to insert an \n bevor $NewLine is reached?

For example:
"His is a long line with a lot of words an here is a loooooooooonnnnnggggg word."

$NewLine is there: -----------------------------------^

But I want to insert the \n bevor "loooooooooonnnnnggggg".

Do you have an solution?

Thanks!

> -- 
> Alessandro Ranellucci  (HOSTING CENTER)           <[EMAIL PROTECTED]>
> Ph. +39 06 6788489 - Fax +39 06 23315902 - http://www.hostingcenter.it

  Martin Edenhofer

--
((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg
        http://www.otrs.de/ :: Manage your communication! 

_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to