In my application i need to query core data, i have a table which contains a field that stores a json string. Now i need to query this table for the any entry that has a specific key-value pair inside this field. I already tried to solve this with a LIKE expression but since the WILDCARDS DO MATCH THE NEWLINE this wasn’t going so well. Now im stuck at figuring out which regex i have to use with the MATCHES operation.
the key and a substring of the value are known and i just need to find the entry containing them,nothing else 🙂
solved it with regex: