adding trex library for regex matching