i have this code written in php  , and i want to convert it into python code 

$title_regex = "/&lt;title&gt;(.+)&lt;\/title&gt;/i";
preg_match_all($title_regex, $string, $title, PREG_PATTERN_ORDER);
$url_title = $title[1];

/// fecth decription
$tags = get_meta_tags($url);

// fetch images
$image_regex = '/&lt;img[^&gt;]*'.'src=[\"|\'](.*)[\"|\']/Ui';
preg_match_all($image_regex, $string, $img, PREG_PATTERN_ORDER);
$images_array = $img[1];


i have tried this .. but it give me errors in pics part 

import re
out=Data #web site html page ..
title_regex = "/&lt;title&gt;(.+)&lt;\/title&gt;/i" #no need for this .. un used 
m = re.search("&lt;title&gt;(.+)&lt;\/title&gt;", out)
print "title",m.group(1)
#for pics i have tried this but it give me error ..
pics = re.match(r"/&lt;img[^&gt;]*'.'src=[\"|\'](.*)[\"|\']/Ui", out)#the conversion is not correct  
print "grop",pics.group(1)


my full code 

import re
import urllib
print "Start"
url="http://www.deviantart.com"
data=urllib.urlopen(url)
out=data.read()
print 
title_regex = "/&lt;title&gt;(.+)&lt;\/title&gt;/i"
m = re.search("&lt;title&gt;(.+)&lt;\/title&gt;", out)
print "first",m
print "title=",m.group(1)

title_regex = "/&lt;title&gt;(.+)&lt;\/title&gt;/i"

pics = re.match(r"/&lt;img[^&gt;]*src=[\"|\'](.*)[\"|\']/Ui", out)

print "pics&gt;&gt;",pics.group(1)


how i can convert a php re>>"/]*'.'src=\"|\'[\"|\']/Ui"  to a python re ?


Question: How do I deal with a slow and undedicated colleague in the team?
Answer: First and foremost: 


  Since he is my colleague, I couldn't tell anything to the manager.


You absolutely can and should make sure your manager knows the truth, even if your co-worker is lying to his face. If you don't want to say anything in a meeting with all 3 of you in the room, that's totally understandable. But you should at least pull your manager (the real one, not just the temp) aside and let them know that your work is almost done and is waiting on bug fixes from the other developer's end before the whole application is ready for prime-time. Don't accuse your co-worker of lying, but don't sit there and let your boss operate with incomplete information. 

Report your statuses honestly. If your work is being held up by bugs on another developer's end, document that you've found bugs in the C/C++ and have reported them (please tell me you're using some form of documentation that leaves a paper trail). 

In the meantime, go ahead and wrap up your work, and let your boss know when you're done. If your manager wants to know why the rest of the project isn't up and running yet, you can refer him to the other developer, and maybe mention that it's probably very complicated/large/requires a lot of testing/other developer is very busy/etc. If you know C/C++, you can offer to help on the main application logic to get things moving with that as well. Yes, you'll be doing the other guy's work, but it makes it clear that you're the employee working hard and being productive, and the other guy isn't, not to mention making you even more valuable to your boss. It may even put some pressure on the other developer to step things up and get them done quicker.