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

Re: [Clip] replace special characters

Expand Messages
  • Don Passenger
    You may benefit from this thread: http://groups.yahoo.com/group/ntb-clips/message/8344 which was Wayne working wizardy putting smart quotes in, but may have
    Message 1 of 3 , Apr 30, 2002
    • 0 Attachment
      You may benefit from this thread:
      http://groups.yahoo.com/group/ntb-clips/message/8344 which was Wayne working
      wizardy putting smart quotes in, but may have some helpful ideas.



      --
      Don Passenger
      mailto:dpasseng@...
      home: http://www.iserv.net/~dpasseng
      work: http://www.grcourt.org
      ----- Original Message -----
      From: "wsqzreimer" <wreimer@...>
      To: <ntb-clips@yahoogroups.com>
      Sent: Tuesday, April 30, 2002 11:59 AM
      Subject: [Clip] replace special characters


      > Hi, I'm a brand new NoteTab user. I'm trying to use it to do a bunch
      > of search-and-replace tasks at once, using a clip. It seems to work
      > on some searches and not others. For example, it found and replaced
      > closing curly/smart quotes, but not opening smart quotes.
      >
      > Here is part of my clip (some of these characters may not come thru
      > in the post):
      >
      > ^!Replace "`" >> "'" WAS
      > ^!Replace "'" >> "'" WAS
      > ^!Replace """ >> """ WAS
      > ^!Replace """ >> """ WAS
      > ^!Replace "-" >> "--" WAS
      > ^!Replace "`" >> "'" WAS
      >
      >
      > Another replace I can't get to work... I want to replace this text:
      >
      > <TD align=left colSpan=2><IMG
      > src="http://www.videoretailer.com/images/dvd142.gif"></TD>
      >
      > with this text:
      >
      > <td><b><i><font face="Arial" size="2">Available for rent on VHS and
      > DVD.</font></i></b></td>
      >
      > I've tried it several different ways. There is a linefeed/cr after
      > IMG, so I use \b to match any white space. Plus I escape the quotes.
      > Why doesn't it work?
      >
      > ^!Replace "<TD align=left colSpan=2><IMG
      > \bsrc=\"http://www.videoretailer.com/images/dvd142.gif\"></TD>"
      > >> "<td><b><i><font face=\"Arial\" size=\"2\">Available for rent on
      > VHS and DVD.</font></i></b></td>" IWAR
      >
      > TIA for any help,
      > Wes
      >
      >
      >
      >
      >
      >
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
      >
      >
    • Ville Saalo
      ... The correct form is (notice everything being on the same, single line!): ^!Replace
      Message 2 of 3 , Apr 30, 2002
      • 0 Attachment
        >Another replace I can't get to work... I want to replace this text:
        >
        ><TD align=left colSpan=2><IMG
        > src="http://www.videoretailer.com/images/dvd142.gif"></TD>
        >
        >with this text:
        >
        ><td><b><i><font face="Arial" size="2">Available for rent on VHS and
        >DVD.</font></i></b></td>


        The correct form is (notice everything being on the same, single line!):

        ^!Replace "<TD align=left colSpan=2><IMG\b*\n\b*src="http://www.videoretailer.com/images/dvd142.gif"></TD>" >> "<td><b><i><font face="Arial" size="2">Available for rent on VHS and DVD.</font></i></b></td>" WARIS

        The \n marks the newline and \b* marks zero or more blanks.

        But you should really concider about using CSS (Cascading Style Sheets)
        on your site... That way you could make
        <td><b><i><font face="Arial" size="2">AnyText</font></i></b></td>
        into
        <td class="rent">AnyText</td>
        On the top of the page, at the <HEAD> -section, you just put this piece of
        code:

        <STYLE TYPE="text/css">
        <!--
        TD.rent {font-family: Arial;
        font-weight: bold;
        font-style: italic;
        font-size: 2px; }
        -->
        </STYLE>

        and then you can use that <TD class="rent"> very very easily at many
        places and replace the looks of all of them at once from the code at
        the top of the page. A good place to start CSS:in' is
        http://www.w3.org/MarkUp/Guide/Style .

        So, a nicer version of that replacer clip:
        ^!Replace "<TD align=left colSpan=2><IMG\b*\n\b*src="http://www.videoretailer.com/images/dvd142.gif"></TD>" >> "<td class="rent">Available for rent on VHS and DVD.</td>" WARIS

        -Ville
      • wsqzreimer
        ... colSpan=2 Available for rent on VHS and
        Message 3 of 3 , Apr 30, 2002
        • 0 Attachment
          --- In ntb-clips@y..., "Ville Saalo" <villes@m...> wrote:
          > The correct form is (notice everything being on the same, single
          line!):
          >
          > ^!Replace "<TD align=left
          colSpan=2><IMG\b*\n\b*src="http://www.videoretailer.com/images/dvd142
          .gif"></TD>" >> "<td><b><i><font face="Arial" size="2">Available for
          rent on VHS and DVD.</font></i></b></td>" WARIS
          >
          > The \n marks the newline and \b* marks zero or more blanks.

          Wow! Thanks, that worked. So I don't need to escape the quotes. Go
          figure.


          > But you should really concider about using CSS (Cascading Style
          Sheets)
          > on your site...

          I'm very familiar with CSS; in fact, some might call me an expert.
          But this particular HTML is for email, which I cannot use style
          sheets in (except maybe in-line, but then what's the point?). Thanks
          for evangelizing anyway!

          Wes
        Your message has been successfully submitted and would be delivered to recipients shortly.