This is a discussion on Preg_match and preg_replace trouble within the PHP General forums, part of the PHP Programming Forums category; I need to extract all text between the following strings, but not include the strings. "<!-- #BeginEditable "Title ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I need to extract all text between the following strings, but not
include the strings. "<!-- #BeginEditable "Title name" -->" "<p align="center">#### </p>" I am using preg_match(????, $s, $results) but I have had no success. I tried items like.. "<!-- #BeginEditable "Title name" -->".*."<p align="center">#### </p>" But have had no luck. Please any assistenc is appreciated. In addition, I need to use preg_replace to replace the following: <a href="/folder2/folder1/folder/page.html"> with <a href="site.com=page.php?option=paper&itemid=page.h tml"> Again, any help is appreciated. The regular expressions confuse me, my brain is about to explode from all the trouble shooting, I guess I'm just not smart emough to figure it out. PLEASE HELP!! thanks |