[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: XPL questions
- Subject: Re: XPL questions
- From: Harry Binswanger hb@xxxxxxxx
- Date: Tue, 05 Sep 2006 16:32:43 -0400
Carl wrote:
Since the object is to shield URLs from modification, why not use
the commands designed to do just that: ....
Hey, there it is right in the Command Reference Guide. I never knew about
those.
First,
replace each instance of "http://; with "http://;. Next,
you'll want to replace the at the end of each URL with
"". Aha, you say, but that fails due to the same wildcard
problem you encountered with Plan A. True, but now there's a way
around that: modify every in the file, not just the 's that
terminate URLs! The extra 's are harmless, but the
... pairs that surround the URLs will prevent the very
changes you want to avoid.
I never would have thought of adding to all the 's.
Important: Insert the NM commands in
eXPanded view, but execute your HTML-related CHange commands in
Draft (WG) view.
Yeah, I've already been doing that (in re my loop-based workaround).
Toggle back to eXPanded view to remove the NM
commands when you're done. It should work (unless there are NM
commands in the file to begin with)! This is a way around a
repetitive looping procedure that, whether inelegant or not, is
undeniably slow.
Thanks, Carl, I will consider that. It looks pretty simple.
Here's a template:
XPLeNCODE v2.0
b-gin [UNTITLED]
[XP_][TF_];*;[cr|lf][BX_]ch http:// [w<]NM1[w>]http://[Q2_];
*;[cr|lf][BX_]ch [wC] [w<]NM0[w>][wC][Q2_];*;[cr|lf][WG_];*;
[cr|lf];*; [your change commands here][cr|lf][XP_][TF_];*;[cr
|lf][BX_]ch [w<]NM1[w>][Q2_][BX_]ch [w<]NM0[w>][Q2_];*;[cr|
lf][cr|lf]
-nd
XPLeNCODE
Good luck!
--
Carl Distefano
cld@xxxxxxxx
Harry Binswanger
hb@xxxxxxxx