Thread: whitespace
View Single Post
  #8 (permalink)  
Old Sep 23rd, 2007, 19:25
grahame grahame is offline
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: whitespace

use .*? rather that [.]* ... and take out the leading space ahead of the [.] too if you want it to work on <script> alone.

The match you have in the example in previous posts is a greedy one that will match up to the last >; you want a sparse match to only go as far as the next >.
Reply With Quote