Hi,
Is there a way to search (and replace) any string? I want to delete various prices throughout a document, but they’re all different number - all they have in common is that they are preceded by a currency symbol (£) and followed by a line break (\n).
I’ll try to explain:
I have a giant JSON file with lots of entries for products. They show various features available for each product, which will then be shown on a website. Example:
"Product 4": {
"details": "STANDARD \n first feature \n second feature \n OPTIONS AT EXTRA COST \n first option - £200 \n second option - £150 \n"
}
This would then look like this:
Product 4:
STANDARD
first feature
second feature
OPTIONS AT EXTRA COST
first option - £200
second option - £150
However, we have decided we don’t want the prices to be shown for those optional features. I could go through the entire sheet, deleting every mention of a price, but that would be too time consuming…
Instead, is there a way to search and replace? Like, could I search for:
- £*** \n
… and replace it with just:
\n
… where the asterisks stand for “any symbol”?
I hope this makes sense. I’m sure it’s a feature of SublimeText, but I don’t know how to word it, so I haven’t been able to find it on the forum.
Thanks to anyone who can help me. And sorry for asking what is arguably a bit of a dumb question