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

mysql_real_escape_string
Let me preface this that I am very much a PHP noob, but I have some SQL training (not necessarily My

Php script to read msword file
hi,

I need to read a msword file and i want to print the contents in that word file.

i

Display the user's weight lost in the past week
Hello everyone,

I am working on a weight loss app for my site, and I want to display the user

include problem
I have my root folder as:
Code: $root = $_SERVER["SITE_HTMLROOT"]; // the server root<

Not capturing all the information we require in the form.......
Hi Guys,

I was wondering if you would share some more of your knowledge today, I'm hoping it

show random images
hey guys

can someone please suggest a way in which the following code can be edited so it onl

if statements problems
Hi. I'm trying to make a web form, but I kind of hit a dead end trying to figure out why it doesn't

Will this protect from mysql injection?
I do not want anything like DROP TABLE to work or any type of coding..

Heres my code.. is it

need Array help
This is what I have to do.
$teamname[1] = "Red Sox"
$teamname[2] = "Gian

Problems generating word documents on server side for security reasons
I have a problem with word documentation generation when generating a word document (docx) with PHP.

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