removed ^ from regex due to usage of match