//a short comment about the program /* A longer comment about the function of the program. */ string appName ="VBScript.RegExp" OleAutoObj RegExpObj = oleCreateAutoObject(appName) if (null (RegExpObj)) error "Cannot connect to OLE Application >"appName"= |> |<= |< |!= |== |is empty|is not empty)",false) ReturnSubMatches(Tester,"(((NOT ((Object Text Contains 'DELETED' ) OR (Object Heading Contains 'DELETED' ))) AND (RM Type == Requirement)) AND (Has in-links through )) AND (NOT (demo code includes DTG))","\\(*([^\\)\\(]+) (Contains |CONTAINS |>= |> |<= |< |!= |== |is empty|is not empty)",0,false) // print ReturnFirstSubMatch("((NOT ((Object Text Contains 'DELETED' ) OR (Object Heading Contains 'DELETED' ))) AND (RM Type == Requirement)) AND (NOT ((((((evidence compliance state == PLANNED (?P)) OR (evidence compliance state == IN PROGRESS (?D))) OR (evidence compliance state == BEING ASSESSED (?A))) OR (evidence compliance state == BEING REWORKED (?E))) OR (evidence compliance state == EXCEPTION)) OR (evidence compliance state == COMPLIANT)))","\\(*([^\\)\\(]+) (Contains |CONTAINS |>= |> |<= |< |!= |== |is empty|is not empty)",0,false) // print ReturnFirstMatch("((NOT ((Object Text Contains 'DELETED' ) OR (Object Heading Contains 'DELETED' ))) AND (RM Type == Requirement)) AND (NOT ((((((evidence compliance state == PLANNED (?P)) OR (evidence compliance state == IN PROGRESS (?D))) OR (evidence compliance state == BEING ASSESSED (?A))) OR (evidence compliance state == BEING REWORKED (?E))) OR (evidence compliance state == EXCEPTION)) OR (evidence compliance state == COMPLIANT)))","\\(*([^\\)\\(]+) (Contains |CONTAINS |>= |> |<= |< |!= |== |is empty|is not empty)",false) for s in Tester do // print s "\n" delete Tester } //Test