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

Re: [Clip] Using \p{Prop} Sequences

Expand Messages
  • Hugo Paulissen
    Hi Flo, Could you please explain what these sequences are? What am I supposed to enter in your clip: ... ^!Set %seq%=^?{Enter Sequence:} Thanks, Hugo ... From:
    Message 1 of 1 , May 28, 2007
    • 0 Attachment
      Hi Flo,

      Could you please explain what these sequences are?

      What am I supposed to enter in your clip:
      ... ^!Set %seq%=^?{Enter Sequence:}

      Thanks,

      Hugo


      ----- Original Message ----
      From: Flo <flo.gehrke@...>
      To: ntb-clips@yahoogroups.com
      Sent: Monday, May 28, 2007 10:28:23 PM
      Subject: [Clip] Using \p{Prop} Sequences

      Hi,

      The RegEx chapter of the Help File doesn't mention \p{Prop}
      sequences. Is there any reason not use these sequences?

      I found out that, in NT5, some of them are working fine, and can be
      useful. For example, \pS or \p{s} matches 27 symbols that are not
      identically covered by any other sequence or POSIX Character Class.
      Or \p{Ps} matching opening brackets, and many more.

      In some cases, NT5 accepts the \pL or the \p{L} notation (where L is
      one or two letters), but not the synonym \p{Letter}.

      For testing those sequences, I made a table with all characters from
      dec 00 to 255 like...

      65 A
      66 B
      67 C
      68 D
      etc

      The following clip outputs all matching characters in this table:

      ^!Set %seq%=^?{Enter Sequence:}
      ^!SetListDelimiter ^P
      ^!Set %char%=^$GetDocMatc hAll("^\d{ 2,3}\x20^ %seq%")$
      ^!Toolbar New Document
      ^!InsertText ^%char%

      Flo







      ____________________________________________________________________________________Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
      http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.