XD-1589 Added regex matching in parsing resource location