Fix regex expression to find list of end point objects

Change-Id: I809c09bb120ff8730bedd0d383a6554f939c4986
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/bmc_redfish_utils.py b/lib/bmc_redfish_utils.py
index 1ce3231..8eade5f 100644
--- a/lib/bmc_redfish_utils.py
+++ b/lib/bmc_redfish_utils.py
@@ -141,7 +141,7 @@
         end_point_list = self.list_request(resource_path)
 
         # Regex to match entries ending in "/prefix" with optional underscore.
-        regex = ".*/" + end_point_prefix + "[_]?[0-9]*?"
+        regex = ".*/" + end_point_prefix + "[_]?[0-9]*$"
         return [x for x in end_point_list if re.match(regex, x, re.IGNORECASE)]
 
     def get_target_actions(self, resource_path, target_attribute):