Skip to content

Instantly share code, notes, and snippets.

@ncammarata
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save ncammarata/cbc2a7b88edf5c8074d4 to your computer and use it in GitHub Desktop.

Select an option

Save ncammarata/cbc2a7b88edf5c8074d4 to your computer and use it in GitHub Desktop.
def extractTags(s):
new = ""
str = []
foundLeft = False
for letter in s:
if(s == '['):
foundLeft = True
if(s == ']'):
foundLeft = False
str.push(new)
new = ""
if(foundLeft):
new += letter
return str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment