Results 1 to 2 of 2

Thread: Simple Perl Question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    How do i replace all line feeds with <BR>'s

    all "'s with &quot;

    etc.

    thanks
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Posts
    65

    use regular expression

    hi,
    i will not be able to give you exact code..
    but using Perl regular expression you can find and
    replace words..

    s/<CRLF>/<BR>/g

    option g at the end is to replace all..
    hope this helps..
    sarath

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width