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

Re: [Clip] find replace funny

Expand Messages
  • David McIntosh
    hI it was the one that I had used before and it had worked well THANKYOU DAVE
    Message 1 of 4 , Aug 30, 2001
    • 0 Attachment
      hI
      it was the one that I had used before and it had worked well
      THANKYOU DAVE

      Jason Waugh wrote:
      >
      > On 31/08/2001 at 1:38 AM David McIntosh wrote:
      > >[8:X to Z List]
      > >
      > >and replace with
      > >
      > >[1:INDEX]
      > >In the clip below in the find I put [1-9]:[A-Z] to [A-Z] List]
      > >in the regexp box I tick
      > >I replace with [1:INDEX]
      > >
      > >What I get for the result is [[1:INDEX] does any body Know why I get
      > >two brackets at the front.??? I do not know who this belongs to.
      >
      > In regular expression searches, square brackets are a special character. They are used in the way that you used them to pick only numbers or only letters... to denote a list of things to search for in a position. If you want to search for a literal [ or ], you have to escape it with a backslash to say "this isn't a list of stuff... I really truly want you to search for a square bracket in this spot". This should achieve what you want (I've tested this too):
      >
      > Search for: \[[1-9]:[A-Z] to [A-Z] List\]
      > Replace with: [1:INDEX]
      >
      > Just out of curiosity... why this clip, when you can do a search and replace w/regexp by pressing CTRL-R?
      >
      > Jason.
      >
      >
      >
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    Your message has been successfully submitted and would be delivered to recipients shortly.