Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Text Wrangler Regex's

^[^.]+. - This Removes everything before the . and including the . so handy for a list of sub doamins.

@random-robbie

This comment has been minimized.

Copy link
Owner Author

random-robbie commented Nov 7, 2019

[,].*

Remove everything after ,

@random-robbie

This comment has been minimized.

Copy link
Owner Author

random-robbie commented Nov 14, 2019

sed -i 's/^/http:\/\//g' file.txt
sed 's|^|http://|g' file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.