Another SMAT Regex question

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Another SMAT Regex question

  • Creator
    Topic
  • #52453
    Jon Blanchard
    Participant

      Code:

      MSH(|[^|]*){7}|(ADT|RDE)

      but the created view always includes ORMs.  How can I modify the regex to get it to work?

      Also, is there a reference document on the regex spec that Cloverleaf uses?  None of the user guides cover this.

      Thanks.

      Migration Consultant
      Coffee Regional Medical Center
      Eastern Time Zone

    Viewing 1 reply thread
    • Author
      Replies
      • #74257
        David Barr
        Participant

          I tried this pattern in a SMAT search, and it didn’t find any ORMs. I was using a file that contained both ADT and ORM messages.

          From the command line you can type “man re_syntax”. There’s a copy of the documentation online here:

          http://www.tcl.tk/man/tcl8.4/TclCmd/re_syntax.htm

          My guess is that you’re doing something wrong setting up your view. You might try a simpler regular expression like “ADT^A08” and see if it has the expected result. If not, you’re doing something wrong (other than the expression itself).

        • #74258

          Try something like this. You probably don’t need all of the preceding characters.

          Code:

          (ADT^|RDE^)

          -- Max Drown (Infor)

      Viewing 1 reply thread
      • The forum ‘Cloverleaf’ is closed to new topics and replies.