backreferences in PCRE?

Dar Scott dsc at swcp.com
Thu Nov 13 16:15:21 EST 2003


On Thursday, November 13, 2003, at 02:08 PM, Dar Scott wrote:

>> I can't remember- are any of Rev's REGEX functions capable of doing 
>> backreferences?
>
> You might consider the (?<= ) "lookbehind" assertion.
>
> Don't forget the start of the string, too.

Yikes.  I mean the negative assertion (?<!  ).  This should also take 
care of the start.

So tinker with this:

replaceText(pStr, "(?<!\\)\\"&quote, "\"&quote)

Dar Scott




More information about the use-livecode mailing list