Actually I tried to make it NON-greedy and couldn't figure out how the
{*filter*}ens I needed to redo it... :(
Quote:
>> Hi Michael
>> Don't you think it's a bit greedy?
> Yes, but Alex wrote it, not me ;-)...
> Any simple example posted with limited context provided by the OP will
> nearly always need refinement when applied to an actual usage scenario
> with real data.
>>>> Thanks Alex.
>>>> Can I have "tagname" only?
>>> Dim rx
>>> set rx = new RegExp
>>> set matches = rx.Execute(sData)
>>> for each match in matches
>>> wscript.echo match.submatches(0)
>>> next
>>> --
>>> Michael Harris
>>> Microsoft.MVP.Scripting
>>> Seattle WA US
>>> Technet Script Center
>>> http://www.*-*-*.com/
--
Please respond in the newsgroup so everyone may benefit.
http://www.*-*-*.com/
(email requests for support contract information welcomed)
----------
Microsoft's new UNIFIED Terminal Services Newsgroup: