regex help please

Andre Garzia andre at andregarzia.com
Thu Feb 9 16:05:37 EST 2012


Klaus,

Since you have control, then instead of RegEx, you can go like

<mynode>
nodecontent
</mynode>

All in different lines, then, you can just use lineOffset to find the start
node and the end node and copy or replace the data between those lines. It
is easier than RegEx.

On Thu, Feb 9, 2012 at 6:54 PM, Klaus on-rev <klaus at major.on-rev.com> wrote:

> Hi Andre,
>
> Am 09.02.2012 um 21:38 schrieb Andre Garzia:
>
> > Klaus,
> >
> > I used to work like that, doing little XML files with RegEx and
> matchText.
> > After working like that for a long time, I came to realize that there was
> > no advantage at all in my case. It was simpler to work with RevXML. The
> > problem with RegEx is all the little cases where it fails. I think you
> > should use RevXML, it might look overkill but it will cut your debug
> time a
> > lot.
>
> than you for your insight, but in this project I have complete control
> over the XML
> and thus will not get any surprises :-)
>
> > Cheers
> > andre
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> klaus at major.on-rev.com
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.



More information about the use-livecode mailing list