Troubleshooting REGEX_EXTRACT for Custom Property Issue
I am needing assistance with a custom property involving REGEX_EXTRACT. It's not working correctly.
IF(@"""{"label":"Referring Domain","propertyDefaultType":"string","resourceType":"event","type":"string","value":"$referring_domain"}"""@==UNDEFINED,"Direct",if(REGEX_EXTRACT(@"""{"label":"Referring Domain","propertyDefaultType":"string","resourceType":"event","type":"string","value":"$referring_domain"}"""@, "(?:https?:\/\/)?(?:www\\.)?([a-zA-Z0-9-]+)\\.", 1)==@"""{"customProperty":{"allow_staff_override":false,"canUpdateBasic":true,"can_share":true,"composedProperties":{"_A":{"label":"Current URL","propertyDefaultType":"string","resourceType":"event","type":"string","value":"$current_url"}},"description":"","displayFormula":"REGEX_EXTRACT( _A , \"https?:\\/\\/([^\\/]+)\", 1)","is_superadmin":true,"joinPropertyType":"string","mappedDataGroupId":null,"name":"Implementation Domain","pre_populated_entity_id":null,"propertyType":"string","referencedBy":[],"referencedDirectlyBy":[],"referencedRawEventProperties":["$current_url"],"referencesBorrowedProperty":false,"resourceType":"events","userInfo":{"email":"andrew@preferabli.com","id":2019561,"name":"Andrew Sussman"}},"customPropertyId":"5729689","joinPropertyType":"string","label":"Implementation Domain","propertyDefaultType":"string","resourceType":"event","type":"string","value":"Implementation Domain"}"""@,"Direct",REGEX_EXTRACT(@"""{"label":"Referring Domain","propertyDefaultType":"string","resourceType":"event","type":"string","value":"$referring_domain"}"""@, "(?:https?:\/\/)?(?:www\\.)?([a-zA-Z0-9-]+)\\.", 1)))
are you able to troublshoot?