[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

xyW3 ci/cv _wildcard_wildcard_.uue



Any xyWrite 3 diehard who has longed to be able to use wildcards in a
find & change replace string as well as the search string--even a find &
change confined to a text block--will find that !w_w is better than a
poke in the eye. Since the only known published xpl program that does a v3
	cv or ci | goo wildcard | wildcard foo |
apparently isn't on the 'net, I sat down the other day and wrote this
one. (A surprisingly easy task: Till the subject came up here a few
months ago, it hadn't even occurred to me that a mortal could do such a
thing.)

Nathan: With the caveat that !w_w has been tested but not torture-tested,
if you want to upload it, well, here it is. 	--a

from !W_W.HOW ====================================================

!W_W adds the functionality of one of v4's most appealing features
to xyWrite 3 versions that accept string parsing (3.55 or later?).
It performs a ci[a] or cv[a] search & replace using any delimiter,
*	with any wildcard(s) in both search AND replace strings
	(the number of wildcards in each string can differ),
*	throughout a file OR within a defined block,
*	context-sensitively:

E.g., in
	*"WW**
!w_w retains the s, zaps the sandwiched .
If the replace string has more wildcards than the search
string, !w_w substitutes the last found search string wildcard
text for each extra wildcard. Absent identical context, !w_w
simply replaces sequentially. Returning to the first example,
to transpose only alt= and src=, not the wildcard strings:
	**<img

begin 644 !w_w.zip
M4$L#!!0````(`#T,4"&]K(5,]PL``#4>```(````(5=?5RY(3U>E&=N.U$;V
M$=%2_\`^G4$HS"2.21:&!`)DAVM&`6876`8I0JC:/NZN'7>5J2IW3T=\T_(+
M^[#_E3WG5-GN[AG(DHQ$X\NI<[_[WT\?W#OZL'/\]IBNGCW]`'?^S-]X-!XQ
M+E!EZ2',$*K6%$%;HVH=5F`KL`;YO\7U*Q[FU@=038/TUDRA0A5:AWX\"A9.
M5\=.!X1KL$#G"0/C4P1>%-@$\,'QD4;1._I_]UJ^OP_60:T"NA_W\O'H,$"#
MKK)N[D$!R_G\0Z%_46\8K%C019+8HW+%#+X`ATVM"H164"JS@A)K/2
M7;BXU&$FCR.RI:[+0KERU^^!-C"Q]#;A4J;LL45.?20V'EW<9;68=CY!QXKH
ML'C&@8H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!^R_^9M#HZ.$4,NR,5E`$=_J*'%$L92"6QO?3\;\;0^G[MFJ]3[5\LOKN
MKML+":H,G2F3\'MBZQ1>5"/C
M*#4EJZ6U#VH>!`@2!3O'$$FE6KZFJDRB@xxxxxxxx?M+'89%\E/HNH.
M_.[CQ=HG\<&]:PU$R:W[O8%8]8=>#R<]_DV".IE^0V5J&KHH3V*=T)WGBQ19
MWD\!7CP'%391?T)GO8SB'M?Z<5/Q!1]ZF>8`+TB<)RJ'AT&.3D#@1-9-9(/[FIJTS
MH-%Y,E`!6U%K:J*.``UI*G-*A8VXT38)9R+,,8_X()>%X^BRVE!Q>0F'L6*W
M?+XAI/']X&8%W5=X(Z]Q-_!@xxxxxxxxO!6!7&L_2VM=]N=3P>K*YSRXFS5\4D=+;7
M+36AP':VH#JY;@_A1*LCY[VW_I4'D^.1AZ/?]K="(O%&ENJ*`>,=Y9OF@`9I
MK`,J+10YNN+96N^KNMOJ?O9XHX.L[K]^H=;WUAG];%)UO&\)*B\/&P*\#
M@)7/9W[Q/U!+`0(4`!0````(`#T,4"&]K(5,]PL``#4>```(``````````$`
M(``````````A5U]7+DA/5U!+`0(4`!0````(`,@+4"'+;#TB9PD``)<8```$
K````````````(````!T,```A5U]74$L%!@`````"``(`:````*85``````
`
end
sum -r/size 13792/7835 section (from "begin" to "end")
sum -r/size 49149/5668 entire input file

============================= adpFisher  nyc