in reply to Re: escaping newlines, regex question
in thread escaping newlines, regex question

That's it!! Thank you so very much. -Wendy
  • Comment on Re: Re: escaping newlines, regex question

Replies are listed 'Best First'.
Re: Re: Re: escaping newlines, regex question
by japhy (Canon) on Aug 24, 2001 at 03:17 UTC
    The reason is not because your regex was bad. The reason was because the text file has two literal backslashes and then an "n". The file should only have one literal backslash -- having two is kind of silly. Had the file been:
    this|that|a long\ndescription\nhere
    (where each character is a literal character), then s/\\n/\n/g would have worked.

    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;