Preg_match unknown modifyer


Posted on 16th Feb 2014 07:03 pm by admin

Hello,

Im trying to write a little script for my forums i need to get the reply from my forums. Im trying this

Did you know?Explore Trending and Topic pages for more stories like this.
Code: $pattern = '/<span class="postbody">(.*?)</span>/gis';
preg_match($pattern, $post, $video);

However inside the stuff its grabbing there is stuff code like </p> etc and it keeps trying to use that as a modifier so i get the following error:

QuoteWarning: preg_match() [function.preg-match]: Unknown modifier 'p' in /home/roms43c/public_html/porn_grab.php on line 21

Does anyone know a way around this?
No comments posted yet

Your Answer:

Login to answer
338 Like 15 Dislike
Previous forums Next forums
Other forums

understanding functions and classes
Code: [Select]
class person {
var $name = "Jimmy Goe";

function get_nam

am I using this for loop correctly
Dear buddies!

Right now I am generating a report with some details for all the dealers.

Add_Months not Easy to Understand
Oracle is number 1, very fast and very easy. But....
OK, I think but have a problem, only 1 pro

undefined offset help
Hi All,

I kept getting undefined offset PHP notice for a simple for loop. For eg
$va = arr

Disable html within defined tags
I have a mysql database that allows users to enter content with html, but I also want to have a tag

Where am I going wrong
Been trying to work this out for hours

I have two tables called 'Genres' and 'Films'. Genre

Mysql query, two times?
Hello to all,

I'm new to php coding and i like it alot. I need help with some noob stuff.

php sessions,logouts & the bloomin back button!
Hi All,

I've got a cms that members can log into. When they logout, the session is destroyed,

passing data from one page to another
hey guys
i have the follwoing code to get information from one page and place on another:

quick question
Hi ..

i have a question
how do i set a var so it displays via an echo
Code: $logo = '&a

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash