backreferences in PCRE?

Alex Rice alex at mindlube.com
Thu Nov 13 16:39:59 EST 2003


On Nov 13, 2003, at 2:15 PM, Dar Scott wrote:

>  I mean the negative assertion (?<!  ).  This should also take care of 
> the start.
>
> So tinker with this:
>
> replaceText(pStr, "(?<!\\)\\"&quote, "\"&quote)

OK this works: replaceText(pStr, "(?<!\\)"&quote, "\"&quote)

Thanks Dar! I haven't used assertions much in regex. I'll keep an eye 
on the bug you mentioned. Although these are just small text chunks so 
I don't think it'll effect me.


Alex Rice <alex at mindlube.com> | Mindlube Software | 
<http://mindlube.com>

what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco



More information about the use-livecode mailing list