[Clip] Re: How to copy and paste a line without activating ^* ?
- You'll have to make more of an effort to read the replies to your posts, if you actually WANT help.
The problem is the caret, not the asterisk.
So search and replace ONLY the caret, then restore it when done.
--- In firstname.lastname@example.org, "joy8388608" <mycroftj@...> wrote:
> --- In email@example.com, Axel Berger <Axel-Berger@> wrote:
> > joy8388608 wrote:
> > > I have a clip that searches for a string and copies each line
> > > containing that string to a new doc.
> > Have you tried ^$GetLine$? (I must admit I have not.) If it is the whole
> > line you want anyway this will also simplify your find string.
> > Axel
> ^$GetLine$ translates ^* also but is worse than SelectLine\GetSelection since GetLine does NOT return the CRLF and the other way does.
> I just tried to replace all ^* with ^xxxx* but the REPLACE command also translates the ^*. Even ^%CARET%* gets translated!!!
> Oh well. This has been interesting and something to remember, but it's not important enough (at least to me) to spend more time on.
> But thanks for trying!
- airhead's wrote:
> You'll have to make more of an effort to read the replies to yourposts, if you actually WANT help.
> The problem is the caret, not the asterisk.
> So search and replace ONLY the caret, then restore it when done.
As indicated in this email the only character causing the problem is
the caret, the lines below, properly placed in your clip, should
solve your problem.
I have clips, in use for some time, for this same problem and this
should take care or it.
;_sample substitution characters - ¥¤§«¢¿?
;_This assumes you will not be
;_saving the sourcefile after all
;_search operations are completed.
^!Replace "^%caret%" >> "¿?" TWHSA
;_place this line in your clip where
;_it only operates on SOURCE file.
;_add above line at beginning of
;_clip to replace all carets in
;_SOURCE before doing search.
;_SOURCE file must be focused.
;_to restore any/all carets in DEST
^!Replace "¿?" >> "^%caret%" TWHSA
;_place this line where it operates only
;_on DEST after each PASTE operation.
Use whatever special characters you choose to swap with caret. I
find them using the Windows C:\WINDOWS\system32\charmap.exe utility.
ºvº SL_day# 313 - created 2010.11.09_18.48.33
Rules guys wish girls knew...
• Yes and No are perfectly acceptable answers.
€ hrs € hsavage € pobox € com
- --- In firstname.lastname@example.org, "joy8388608" <mycroftj@...> wrote:
>^$GetSelection$ is prevented from interpreting that ^** token if the search is being executed with a RegEx.
> Sorry, but you misunderstand.
> I have a clip that searches for a string and copies each line
> containing that string to a new doc.
Given a line like...
Combined with diodeom's trick (deleting the leading caret and inserting it later) the whole job could be...
^!Find "\^\Q***\Eline" RS
^!Toolbar New Document
- --- In email@example.com, "flo.gehrke" <flo.gehrke@...> wrote:
>Sorry, that's nonsense ;-)
> ^$GetSelection$ is prevented from interpreting that ^** token if the
> search is being executed with a RegEx.
The RegEx is just a solution for executing ^!Find without interpreting ^** as a NT-token. It's diodeom's trick which prevents ^$GetSelection$ from interpreting that token.
Nevertheless, that it's the whole clip that might contribute to Joy's problem...