tvogel...@de-mare.nl
Subject: How do I use substrings in regular expressions?
To: use-revolution@lists.runrev.com
Date: Tuesday, April 13, 2010, 1:55 PM
I cannot get this regex to work:
put replacetext(textBlock,q(IMG SRC='([^']*)'
([^]*) ID=' idNumber ' ([^]*)),
q(IMG SRC=' newPath ' \2 \3
Michael Kann wrote:
Here's a somewhat generic script to find any HTML element by its ID
and make the replacements you need. It doesn't use regex. I apologize.
No need to apologize. RegEx is convenient, but it's able to offer that
convenience usually at the price of performance.
It almost
Hi Michael,
I agree with Richard and want to thank you for the script. I don't really
demand a regex; I just need to replace the SWF reference with the appropriate
JPG.
I used a regex because I often use GREP in BBEdit. But apparently the
implementation in runrev is a bit different. It
I cannot get this regex to work:
put replacetext(textBlock,q(IMG SRC='([^']*)' ([^]*) ID=' idNumber '
([^]*)), q(IMG SRC=' newPath ' \2 \3)) into textBlock
The purpose is to replace:
IMG SRC=flashblocks/editors/Mediablock.swf WIDTH=300 HEIGHT=100 ID=ID3
ALIGN=left VSPACE=2 HSPACE=8
with: