Sep-17-2017, 06:43 PM
name = re.compile('hello\b')
\b
matches the empty string at a word boundary. This will still match 'shello', but you could put a \b at the beginning to stop that too.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures