SMAT Regular expression matching in 5.8.4

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf SMAT Regular expression matching in 5.8.4

  • Creator
    Topic
  • #53024
    mark zebehazy
    Participant

      Good afternoon all,

      Ran into an interesting issue today regarding searhing SMAT files using regular expressions.

      In 5.7, I could use the following regular expression to find all HL7 messages with an MSH.4 value of 052 and a DG1 segment:

      |052|.*DG1

      In 5.8.4, if I use this same expression, it will not return any results. Doing more research, I found if I put this expression in 5.8.4, it does work:

      |052|.*r.*r.*r.*rDG1

      So what appears to be happening is that the carriage return is no longer considered matching the . in the regular expression.

      We looked through the release notes for 5.8.5 and didn’t see that this was corrected. Is this an issue or does someone have a better expression to use in 5.8.4’s regular expression tool?

      Thanks,

      Mark Zebehazy

      Banner Health

    Viewing 1 reply thread
    • Author
      Replies
      • #76283
        bill bearden
        Participant

          |052|(.*r)*DG1

          This way, the DG1 doesn’t have to be a set number of lines below the 052.

        • #76284
          mark zebehazy
          Participant

            Thank you Bill, that’s a great suggestion.

            Mark

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