find all the occurrences of a character in a string,"[x.start() for x in re.finditer('\\|', str)]"