Created
May 15, 2015 04:42
-
-
Save CodyKochmann/de4e9a791493912c5dae to your computer and use it in GitHub Desktop.
returns a substring starting with start and ending with end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_complete_string(s,start,end): | |
# returns a substring starting with start and ending with end | |
# By: Cody Kochmann | |
unique="~~~~the~obvious~way~to~do~it~~~~" | |
return(start+s.replace(start, unique).replace(end, unique).split(unique)[1]+end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment