Re: Upper case
- Hey Dave,
In addition to what Alan suggested, here's my 2 cents worth. Bear in
mind it's kind of hard to answer this when we don't know what your
goal is. It basically appears to me that you want to capitalize the
preceding non digits to a colon (:) on each line using RegExp. A
potential problem in doing it with row by row numbers as you have
could occur depending on whether word wrap was turned on or not.
So I'm guessing here at what your actual goal is.
The following capitalizes the non digits preceding a : on each new
line (after a line break i.e. hitting ENTER) in the entire document
of any type of text including outlines.
^!Find "^[^0-9]*:" TISR
--- In firstname.lastname@example.org, "Dave" <dgm2003@o...> wrote:
> Hi there
> The clip below works ever time on a normal text page but in a OTL
> finishes two or three headings ahead ,I have tried "jump TEXT_END"
> of the CTRL+END it makes no difference ,the clip works well it just
> stop on one lot of content.
> ^!SET %ROWT%=^$GETROW$
> ^!KEYBOARD CTRL+END
> ^!SET %ROWB%=^$GETROW$
> ^!SET %ROWBT%=^$calc(^%ROWB% - ^%ROWT%)$
> ^!SET %N%=1
> ^!SetCursor ^%ROWT%:1
> ^!Find "\D*\:" SIR
> ^!MENU Modify/Text Case/Upper Case
> ^!INC %N%
> ^!IF ^%N% <= ^%ROWBT% START
> ^!Jump SELECT_END
> THANKYOU DAVE