On 30/03/06, Jerome Jabson <jjabson at yahoo.com> wrote: > import re > > arg1 = '10" > > p = re.compile(r + arg1 + '\.(\d+\.\d+\.\d+)') Have a look at string substitutions :-) --- http://docs.python.org/lib/typesseq-strings.html p = re.compile(r'%s\.(\d+\.\d+\.\d+)' % arg1) -- John.