I apologize if there is an answer for this somewhere, but my search skills have failed me if there is.
I'm using UltraEdit and there are lines I need to remove from some JSON schemas to make comparing them easier.
So given the following:
"PaymentMethod": {
"$id": "/properties/PaymentMethod",
"items": {
"$ref": "PaymentMethod.json"
},
"type": "array"
}
Using this RegEx:
^.*\".*\"\: \".*$\r\n
Selects these lines:
"$id": "/properties/PaymentMethod",
"$ref": "PaymentMethod.json"
"type": "array"
What I need to do is skip the $ref line.
I've tried to get negative lookaround to work using (?!json) in various ways with the selection criteria and have failed miserably.
The purpose of this is to delete the selected lines.
Thanks for any help.
Update: To clarify, there are lines I want to delete that match the criteria my Regex finds, but I do not want to delete the $ref line. So I was hoping to find a relatively easy way to do this using straight up perl regex within UltraEdit.
I've created a workaround with a Python script so I can get my work done, but it would still be interesting to find out if there is a way to do this. :)