Loading ...
Sorry, an error occurred while loading the content.

19757[Clip] Re: title varible

Expand Messages
  • flo.gehrke
    Oct 9, 2009
    • 0 Attachment
      --- In ntb-clips@yahoogroups.com, tom thomas <tom@...> wrote:
      >
      > I get an error for this line
      >
      > ^!Set %mod%=^$GetDocReplaceAll("[!\x20.,?]+";"")$

      Tom,

      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!

      into...

      Thisismytitle
      This is my title


      ^!IfEmpty ^$GetSelection$ Next Else Skip_2
      ^!Info There's nothing selected!
      ^!Goto End
      ; Remove punctuation marks but no spaces
      ^!Replace "[[:punct:]]" >> "" HARS
      ; Remove spaces from selection
      ^!SetClipboard ^$StrReplace(" ";"";^$GetSelection$;0;0)$
      ^!Jump Line_Start
      ^!InsertText ^$GetClipboard$^P


      Regards,
      Flo
    • Show all 12 messages in this topic