Jump to content

Simple question regarding preg_replace


Guest upirate

Recommended Posts

http://sg2.php.net/manual/en/reference.pcre.pattern.modifiers.php

 

s (PCRE_DOTALL)

    If this modifier is set, a dot metacharacter in the pattern matches all characters, including newlines. Without it, newlines are excluded. This modifier is equivalent to Perl's /s modifier. A negative class such as [^a] always matches a newline character, independent of the setting of this modifier.

Guest upirate

thankyou for the post. I just have one last question to ask you and you seem like you can:

 

As I said before, I have this text area. I want the user to be able to cut and paste text from another site/document and for it to retain the paragraph and breaks. (but without any malicious tags etc)

 

 

do you know of any place where I can find the code ?

 

 

thanks again for the reply

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.