'Given a string, returns an regex pattern to match that string.
\'HTML\' -> r\'(?P<abbr>[H][T][M][L])\'
Note: we force each char as a literal match (in brackets) as we don\'t
know what they will be beforehand.'

def _generate_pattern(self, text):

    chars = list(text)
    for i in range(len(chars)):
        chars[i] = (u'[%s]' % chars[i])
    return (u'(?P<abbr>\\b%s\\b)' % u''.join(chars))
