Advertisement
amereservant

Untitled

Aug 16th, 2011
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. <?php
  2. $content = '<style type="text/css" media="print">#content { background:#FFF; color:#000 }</style>';
  3.  
  4. if(preg_match_all('#(<style[^>]*(?!print).*>.*</style>)#Usmi',$content,$matches))
  5. {
  6.     // Do something with all matches that didn't match print....
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement