Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Find Msgs with 2 or more OBR segments in SMAT
I have tried a bunch of different regex statements, but can’t seem to come up with one that will identify messages with 2 or more OBR segments. Does anyone know how to do this search? We are using Cloverleaf 5.8
I ended up solving this myself. I was trying to do something like
(OBR){2,}
But it would never match. So I ended up using this instead
bOBRb(?:[sS]+?bOBRb)+
EDIT: I have since found an even easier way
(?s)OBR.*OBR
If OBR-1 is set on each segment and it increments, then OBR|2 should find it, no?
Robert Milfajt Northwestern Medicine Chicago, IL