regex search function added