I have a document where the matching line is []
For above:
Whenever the matching line is found, the line above that should be deleted. In this case ## mentions
should be deleted.
## mentions
[]
For below:
Whenever the matching line is found, the line below that should be deleted. In this case ## mentions
should be deleted.
[]
## mentions
How to achieve this using regex?
Edit: I am using VSCode regex.