>The latter, ie
>
><.*?>
>
>matches a left bracket, the minimum chars needed followed by a right bracket
>
>the dot matches any char but a newline
>
>The former, ie
>
><[^>]*>
>
>
>matches a left bracket, any number of chars except the right bracket, followed by a right bracket
>It matches newline char between the left and right brackets, while the first does not
>
>eg (using square brackets instead of angle brackets)
>
>The first pattern will fail here, the second will work
>
>[tag]
>
>attr="PPP"
>
>
>
>[/tag]
>
Thanks, I have adjusted the method to take care of that.