Results 1 to 2 of 2

Thread: Replace all lines except first

  1. #1
    Join Date
    Jul 2009
    Location
    Israel
    Posts
    6

    Replace all lines except first

    Hi, I trying do something like that:
    PHP Code:
    $string 
    '<img src="1.gif" />
    <img src="2.gif" />
    <img src="3.gif" />
    <img src="4.gif" />
    <img src="5.gif" />'
    ;
    $result preg_replace('/(<img(.*)>$)/''.'$string, -1);
    echo 
    $result
    I must replace all <img src="..." /> except first line, but with no results...

  2. #2
    Join Date
    Mar 2011
    Posts
    38
    Hello Friend,
    Please be clear in what are explaining. What do you really mean by "except first line"?

    Ahamed

Similar Threads

  1. I need a couple of lines of javascript ($50)
    By hoodleehoo in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 09 Nov 2010, 07:09 PM
  2. text lines
    By stretch in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 27 Dec 2008, 12:36 PM

Tags for this Thread

Posting Permissions

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