Le 01/12/2014 19:26, Julio Sanchez a écrit : > Benoît: > >> content = Scan(text, "*<div>*</div>*") > Yes, function as a "simple" between. But would not work with nestings > > Example: > Dim arrayStr As String[] > Dim text As String > > text = "Hola <div> Bonito <div> gato </div> negro </div>" > > ArrayStr = Scan(text, "*<div>*</div>*") > > Print arrayStr[1] > > Return: > "Bonito <div> gato" > > > If you respect the nesting would return: > "Bonito <div> gato </div> negro" > > > Regards > Julio >
Your function does not respect the nesting too, doesn't it? -- Benoît Minisini ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user