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

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

Material Issuing for receiving batch
Dear All experts in MM/ PP,

Material issuing from main stores to factory is currently usi

session variable problem
Session variable is not working in Fire fox i am getting null value but it is working fine in IE.

PHP and MySQL on intranet?
Is it possible to use both these on an intranet network?

Please help - should be a simple fix.. driving me nuts
Everything seemed to be working fine. I have a table, it alphabetically lists a bunch of cities and

Syntax error
hi im having a little trobble with this script
-------------------------------------------------

How a counter of users ? such as ---> (231 Viewing)
I want to count how many users are actually viewing the page, How is that possible?
Thank you guy

DateTimeZone::listIdentifiers headache
http://php.net/manual/en/datetimezone.listidentifiers.php


So the documentation states tha

Deleting pointers froms vector?
Hi. I have a vector filled with pointers and I want to delete the pointers. I could do a loop and do

XML Grouping
I'm using xml_parse_into_struct to get all my elements, but now I need to group them. For example, h

Problem with HTML form
Hello,

I made a HTML form with some fields and check box.
Everything works fine except whe

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