Jump to content

preg_replace


hunter

Recommended Posts

[a href=\"http://www.askoxford.com/concise_oed/bacon?view=uk\" target=\"_blank\"]http://www.askoxford.com/concise_oed/bacon?view=uk[/a]

i got the source of that page, and i want to get everything before [code]<h2>bacon</h2>[/code] and after the definition out.... that would be [code]<p>&nbsp;&nbsp;<font size=-1>[/code] and following.... but i'm not good at regexps particulaly in php, would someone please show me how to do this?
Link to comment
https://forums.phpfreaks.com/topic/5895-preg_replace/
Share on other sites

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.