Remove lines
Example raw data
stspg-webhook.xxx.io
xxx.io
slackbot.xxx.io
xxx.io
jp-api.xxx.io
Solution
- Remove all top level domain with new lines
- Search with
^xxx.io$
, replace with empty string
- Search with
- Remove all empty new lines
^\n\n
^\n
Photo by Joshua Aragon on Unsplash