Jump to content
Old threads will finally start getting archived ×

darklexus2k9

Members
  • Posts

    36
  • Joined

  • Last visited

Community Answers

  1. darklexus2k9's post in Regex help replacing text in multiple lines of text file was marked as the answer   
    i think what you want todo is really easy and can be done with one simple line of regex

     
    preg_replace("/href=\"http:\/\/www.domain.com\/entry.php\/(.*?)\/(.*?)\"/", "href="{EntryNumber=$01.link}"", $input_data);
    you can see this working at the following link : http://www.phpliveregex.com/p/jGr
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.