skatermike21988 Posted May 6, 2008 Share Posted May 6, 2008 Hello, I am needing to remove all data stored inbetween <style> and <script> tags; reason being is that my script communicates with my server, my server responds with html, well there is only a certain string of text that I need out of the response, and i use strip_tags() but that still leaves everything that was inside the tags. so i want to use regex to remove the data first and then strip_tags() to remove all the other html after the regex has removed the <style> and <script> data. Regex is something I never really understood, so any help is appreciated. Thanks, Mike Quote Link to comment Share on other sites More sharing options...
skatermike21988 Posted May 6, 2008 Author Share Posted May 6, 2008 Nevermind, I got a method that worked, it's kinda ugly but o well it does the trick, :\ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.