I need to create a regex which will match whole lines. Keys will remain the same but the values might be anything:
{
"firstItem":{
"secondItem":0,
"thirdItem":1209,
"params":{
"firstParam":"*:*",
"numbers":"1010000",
"entries":"90000"}},
"response":{"num":1726201,"start":1010000,"docs":[
CodePudding user response:
If you need a regex to read each line, you can directly match on the newline character using "[^\n] "
.