Regexp find a match with priority order but same captured group

I have the same problem as the one in the link but in PCRE2 (regex101.com): Regexp find a match with priority order? I have: /.*?(hello)|.*?(hey)|.*?(hi)/gm hi hey hello But the problem is that when it finds hello, it is stored in group 1, when it finds hey in group 2, and when it finds hi… Read More Regexp find a match with priority order but same captured group

Convert .NET Regex to PCRE2 Regex to get date value of a JSON

I have JSONs which look like this: [{"step":1,"stepId":17,"nextStepId":18,"data":[{"title":"Role of Partner","content":null,"contentText":"Please select one","type":"dropdown","id":"field2step17"}],"status":"00-Draft"},{"step":2,"stepId":18,"nextStepId":42,"data":[{"title":"Product Line","content":["116"],"contentText":"International BD","type":"lookup","id":"field2step18"},{"title":"TEST Responsible Person","content":"John, Doe (external)","key":"i:0#.w|opmain\\xespsa","type":"people-picker","id":"field3step18"},{"title":"Deadline","content":"2023-01-04","type":"date","id":"field12step18"}],"status":"00-Draft"},{"step":3,"stepId":42,"nextStepId":19,"data":[],"status":"00-Draft"},{"step":4,"stepId":19,"nextStepId":21,"data":[],"status":"00-Draft"},{"step":5,"stepId":21,"nextStepId":null,"data":[{"title":"(iii) none of the above","content":"Yes","type":"radio","id":"field3step21"}],"status":"00-Draft"},{"step":6,"stepId":16,"nextStepId":null,"data":[{"title":"The partner’s role is limited to supporting TEST Group in tax, financial, accounting, legal or regulatory advisory services or related representations before government agencies, provided that:\nthe proposed Partner is a reputable legal, audit or… Read More Convert .NET Regex to PCRE2 Regex to get date value of a JSON