19757[Clip] Re: title varible
- Oct 9, 2009--- In firstname.lastname@example.org, tom thomas <tom@...> wrote:
> I get an error for this line
> ^!Set %mod%=^$GetDocReplaceAll("[!\x20.,?]+";"")$
I think Sheri gave you a perfect solution -- if run with the latest version. Here's another idea that possibly works with v5.1.
Regarding your ^!Replace commands: Combining H and W makes no sense. Either it's W (whole document) or H (highlighted text only). In this case, I think you mean H.
Line #5 in your clip removes spaces. But I understand they must not be removed from the original titel.
The following clip will turn any line like...
This, is. my? title!
This is my title
^!IfEmpty ^$GetSelection$ Next Else Skip_2
^!Info There's nothing selected!
; Remove punctuation marks but no spaces
^!Replace "[[:punct:]]" >> "" HARS
; Remove spaces from selection
^!SetClipboard ^$StrReplace(" ";"";^$GetSelection$;0;0)$
- << Previous post in topic Next post in topic >>