Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $content = '<style type="text/css" media="print">#content { background:#FFF; color:#000 }</style>';
- if(preg_match_all('#(<style[^>]*(?!print).*>.*</style>)#Usmi',$content,$matches))
- {
- // Do something with all matches that didn't match print....
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement