I'm using preg_replace() to try and remove the following from a larger string (a file that I'm reading using file_get_contents() )
I can't work out a regular expression to pick out the bit I want to get rid of. I'm sure it's easy, I just have no clue with regexps!
This is what I want to match/remove:
I've been trying to match on the instances of "<style" and "style>" and what's between them.
I've tried googling and been messing with this for a while, I've got a headache now so can you help!?
Foamcow Heavy Industries - Web design and ranting
Toccoa Games - Day of Defeat gaming community
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
"I'm making time
I can't work out a regular expression to pick out the bit I want to get rid of. I'm sure it's easy, I just have no clue with regexps!
This is what I want to match/remove:
Code:
<style type="text/css">
.sitedistribute {font-family:; font-size:px; color:#; font-weight:;}
A.sitedistribute {font-family:; font-size:px; color:#; font-weight:;}
.copydistribute {font-family:; font-size:px; color:#; font-weight:;}
A.copydistribute {font-family:; font-size:px; color:#; font-weight:;}
</style>
I've been trying to match on the instances of "<style" and "style>" and what's between them.
I've tried googling and been messing with this for a while, I've got a headache now so can you help!?
Foamcow Heavy Industries - Web design and ranting
Toccoa Games - Day of Defeat gaming community
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
"I'm making time