[EMAIL PROTECTED] writes: > #CODE BEGIN > import re > > mystring = "This Is An \$EXAMPLE\String;" > regex = re.compile("[\$]+\S*",re.IGNORECASE) > keys = regex.findall(mystring) > > #CODE END
regex = re.compile("[\$]+\w*",re.IGNORECASE) >>> import re >>> >>> mystring = "This Is An \$EXAMPLE\String;" >>> regex = re.compile("[\$]+\w*",re.IGNORECASE) >>> keys = regex.findall(mystring) >>> keys ['$EXAMPLE'] >>> Be seeing you, -- Godoy. <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list