On 17:21 Mon 20 Dec , [EMAIL PROTECTED] wrote: > regex people, > > so I have: > <script> > blah blah blah blah > </script> > more stuff goes here > <script> > blah2 blah2 blah2 > </script> > > my goal is to get some sort of regular expression that will delete out all > the stuff between the script tags without deleting "more stuff goes here" > > ideas?
Not sure what your implementation language is, but in Ruby, something like the following, perhaps: text.gsub!( /<\/script>.*?<script>/m, "</script><script>" ) - Jamis -- Jamis Buck [EMAIL PROTECTED] http://www.jamisbuck.org/jamis -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
