Skip to content

Instantly share code, notes, and snippets.

@pragdave
Created January 26, 2020 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pragdave/8e0e4dfaf352265065674933ce931740 to your computer and use it in GitHub Desktop.
Save pragdave/8e0e4dfaf352265065674933ce931740 to your computer and use it in GitHub Desktop.
str1 = "replace multiple spaces in this string with a single space"
str2 = "remove the decimal point and fractional parts of 3.14159 and 99.999."
str3 = "if words are 4 or more characters surrounded by spaces, replace words in this sentence with a single W"
str4 = "like str3 but now words must be between 4 and 6 characters"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment