in reply to Re: Re: Re: line endings in remote documents
in thread line endings in remote documents

Except he's using the end of line characters as a means of splitting the input.

--
perl -pe "s/\b;([st])/'\1/mg"

  • Comment on Re: Re: Re: Re: line endings in remote documents

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: line endings in remote documents
by Juerd (Abbot) on Dec 20, 2001 at 21:50 UTC
    Did he? He did indeed.

    Anyway, same regex (\r\n?|\n), other syntax (split /\r\n?|\n/, $foo).

    I might have caused some confusing, I hope it'll be useful anyway :)

    2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$