Wildcard Route All ADT_A?? except A17 and A24.

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Wildcard Route All ADT_A?? except A17 and A24.

  • Creator
    Topic
  • #47868
    Keith McLeod
    Participant

      I have gone through several regular expressions in a wildcard route, however still not getting the reulst of sending all ADTs except ADT_A17 and ADT_A24 message types.  Tried things like ADT_A.[^17|24] and other variations.  Is the ‘.’ required?

      Anyone have a good source for regular expression building?

    Viewing 3 reply threads
    • Author
      Replies
      • #56941
        Charlie Bursell
        Participant

          A good source is Brent Welch’s latest Tcl book.

          When you say *ALL* HL7 message do you really mean all?  

          You could use a regexp like:

          ADT_A(0[1-9)|(1[0-689])|(2[0-35-9])|(3[0-9])

          Would send ADT_A01 – ADT_A39 and exclude A17 and A24

          If I really wanted all and I was just getting ADTs, I would filter the A17 and A24 types in the input and simply raw route the rest.

          Charlie

        • #56942
          Tom Henderson
          Participant

            There’s a tool called Visual-Regexp which allows you to play around with regular expressions and matching.  I use it every now and then when I’m working on a tricky one, or when the regular expresssion I just created somehow fails to match anything.

            See http://wiki.tcl.tk/7992 for details.  The interface takes a little getting used to, but once you get the hang of it…

            Don’t confuse with Regexplorer, which is a similar tool written in Perl.

          • #56943
            Charlie Bursell
            Participant

              We also have a tool called Tcl   8)

            • #56944
              Tom Henderson
              Participant

                I should probably clarify that Visual-Regexp IS written in TCL, which is why I tend to use it for TCL regular expressions.   Regexplorer is probably just as good for regular expression exploring, but it’s written in Perl…

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