Jump to content

jmtz33

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jmtz33's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. wow, I really appreciate the super quick response. I was able to successfully use the last example you provided and it worked great with a little tweaking. thanks again!
  2. I am having some trouble as this works great in the Regexr program at http://gskinner.com/RegExr/ but not through my php code. The $theData is a file I have opened and I want to replace every 3rd instance of the <p> tag with something else. This works fine but it returns only the matched and changed lines rather than the entire document. I am basically using this as a sed/awk for replacing information on a file but I don't know how to get the full output so that I can write it back to the file. Any suggestions or at least a keyword of what to research to do this. Thanks! echo preg_replace('/<p>.*?(?<!\A)<p>/sm', '<p style="float:left;">', $theData);
×
×
  • 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.