def __findPlaceholder(self, data, index):
    '\n        Extract id from data string, start from index\n\n        Keyword arguments:\n\n        * data: string\n        * index: index, from which we start search\n\n        Returns: placeholder id and string index, after the found placeholder.\n        \n        '
    m = self.__placeholder_re.search(data, index)
    if m:
        return (m.group(1), m.end())
    else:
        return (None, (index + 1))
Extract id from data string, start from index

Keyword arguments:

* data: string
* index: index, from which we start search

Returns: placeholder id and string index, after the found placeholder.
def __findPlaceholder(self, data, index):
    '\n        Extract id from data string, start from index\n\n        Keyword arguments:\n\n        * data: string\n        * index: index, from which we start search\n\n        Returns: placeholder id and string index, after the found placeholder.\n        \n        '
    m = self.__placeholder_re.search(data, index)
    if m:
        return (m.group(1), m.end())
    else:
        return (None, (index + 1))