I am dealing with a log line that contains a comma separated value for a particular field -
xyz=,xyz_xyztest_27_jun_2019_2:4000,a_test_case_id-20190624.1:7|431
Logging of these comma separated values may happen in any order. For example -
xyz=,a_test_case_id-20190624.1:7|431,xyz_xyztest_27_jun_2019_2:4000
I am trying to write a regex in perl to match these values -
=~/^(?=.*xyz=)(?=.*xyz_xyztest_27_jun_2019_2:[\da-f]+)(?=.*a_test_case_id-20190624.1:[\da-f]+\|[\da-f]+)/
But this doesn't seem to match. Am I missing something? Thanks