View Single Post
Old 03-17-2011, 11:42 AM   #2
Bobus
Junior Member
Bobus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2011
Device: Kindle
I think:

Code:
import re

def print_version(self, url):
    return re.sub(r'([0-9]*)\-.*', r'\g<1>/print', url)
if it's not work, send the right url.
Bobus is offline   Reply With Quote