Skip to content

Instantly share code, notes, and snippets.

@MrSnyder
Last active October 23, 2020 08:39
Show Gist options
  • Save MrSnyder/82578357a4f3bf48fe75f69b241d37cc to your computer and use it in GitHub Desktop.
Save MrSnyder/82578357a4f3bf48fe75f69b241d37cc to your computer and use it in GitHub Desktop.
Regex Cheatsheet

Regex Cheatsheet

sed

# base structure
sed 's/FIND_STRING/REPLACE_STRING/OPTIONS'
# examples
sed 's/<proxyBaseUrl>.*<\/proxyBaseUrl>/<proxyBaseUrl>https:\/\/whatever.de<\/proxyBaseUrl>/'

Options

  • /g: global (by default, only replaces the first match)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment