• Regular Expressions Exerciser (Word 2000)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Regular Expressions Exerciser (Word 2000)

    • This topic has 2 replies, 2 voices, and was last updated 17 years ago.
    Author
    Topic
    #451243

    Thanks! That’s a keeper. cheers

    Viewing 1 reply thread
    Author
    Replies
    • #1110355

      (Edited by chrisgreaves on 27-May-08 03:43. Added example strings)

      I wrote the little Regular Expressions Exerciser so that I could brush up on my skills before passing some of them on to the client …..

      Use your Tab key to flip between the two text boxes.
      Exiting the source string box clears the result.
      Exiting the regexp box evaluates the result.

    • #1110478

      >Thanks! That’s a keeper.
      Thanks, Steve. Like me. Simple, but works.
      I added (in the document body) some examples of strings, and u/l a newer version, then used post 285,052 to obtain the table tags for this post.

      String to be searched Mask
      Greaves Greaves Literal characters
      Gray Gr[ea]y Match any one of
      B03 [A-P][0-9][0-9] Match any one of
      C04 [A-P][^0][0-9] Not match
      D05 wdd Shortcuts
      Cat Match any single character
      Draft dodger ^draft Start of string
      Dodger of draft Draft$ End of string
      Jupiter my @#$!%-cat companion Cat|dog|mouse Alternation
      Colour Colu?r Optional
      Html Html* Zero or more
      Ascii Asci+ One or more
      Groovy! Gro{2,2}vy Specific count
    Viewing 1 reply thread
    Reply To: Regular Expressions Exerciser (Word 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: