Import urllib.request import urllib2 import re html_content = urllib2.urlopen('https://www.google.iq/?gws_rd=ssl').read() matches = re.findall('regex of string to find', str1 = "media Mujahideen" str2 = "Media Alblattform" str3 = "Media Zahra" str4 = "Al-Qaeda in the Islamic Maghreb" str5 = "Islamic awakening forum" str6 = "inform the hosts of the Islamic state." str7 = "Islamic state." str8 = "Mujahideen Shura Council." str9 = "mujahideen" str10 = "black" str11 = "Jihad" str12 = "infidel" str13 = "martyrdom" str14 = "Hear us if you want fairness." str15 = "jihad of the arbitration law." str16 = "Muhammad and his companions state of Islam." str17 = "loyalty to the Muslims and disavowal of the infidels." str18 = "Report" str19 = "#Daash" str20 = "another explosive device" str21 = "Islamic Caliphate" str22 = "killed and injured" str23 = "death to the west" str24 = "brothers" str25 = "puppets"); if len(matches) == 0: print 'I did not find anything' else: print 'The string is in the url' Import urllib.request import urllib2 import re html_content = urllib2.urlopen('https://www.google.iq/?gws_rd=ssl').read() matches = re.findall('regex of string to find',str1= " " str2= " " str3= " " str4= " " str5= " " str6= " " str7= " " str8= " " str9= " " str10= " " str11= " " str12= " " str13= " " str14= " " str15= " " str16= " " str17= " - " str18 = "" str19 = "#" str20 = " " str21 = " " str22 = " " str23 = " " str24 = "" str25 = ""); if len(matches) == 0: print 'I did not find anything' else: print 'The string is in the url' Import urllib.request import urllib2 import re html_content = urllib2.urlopen('https://www.google.iq/?gws_rd=ssl').read() matches = re.findall('regex of string to find'str1= " " str2= " ( str3= " " str4= " " str5= " " str6= " : " str7= " : " str8= " : " str9= " : " str10= " " str11= " : ( )" str12= " : " str13= " ()" str14= " AQAP " str15= " : " str16= " " str17= " " str18= " : " str19= " " str20= " : " str21= " : " str22= " " str23= " : " str24= " : " str25= " : " str26= " : : " str27= " : " str28= " : " str29= " " str30= " : " str31= " " str32= " " str33= " : " str34= " - " str35= " - : " str36= " : " str37= " " str38= " " str39= " " str40= " " str41= " " str42= " " str42= " " str43= " " str44= " " str45= " " str46= " " str47= " " str48= " " str49= " " str50= " " str51= " #" str52= " #_" str53= " #_" str54= " #_" str55= " #_" str56= " #_" str57= " #_" str58= " #_" str59= " #_" str60= " #_" str61= " #_" str62= " #" str63= " " str64= " " str65= " " str66= " " str67= " " str68= " " str69= " " str70= " " str71= " " str72= " " str73= " " str74= " " str75= " - " str76= " " str77= " " str78= " "); if len(matches) == 0: print 'I did not find anything' else: print 'The string is in the url' Import urllib.request import urllib2 import re html_content = urllib2.urlopen('https://www.google.iq/?gws_rd=ssl').read() matches = re.findall('regex of string to find' str1 = "media Mujahideen" str2 = "Media Alblattform (swivel" str3 = "Media Alblattform" str4 = "Media Zahra" str5 = "Al-Qaeda in the Islamic Maghreb" str6 = "Al-Qaeda in the Islamic Maghreb: Media Andalusia" str7 = "rule: forum redemption" str8 = "rule: Youth Media" str9 = "rule: Media greeting" str10 = "female partisans of the youth movement." str11 = "Youth: Media battalions (Islamic State Branch)" str12 = "Ansar al-Islam: Media Wing" str13 = "Ansar al-Sharia (Tunisia)" str14 = "AQAP inspirational magazine" str15 = "Islamic Army in Iraq: News Buraq" str16 = "Islamic awakening forum" str17 = "inform the hosts of the Islamic state." str18 = "Islamic state: Media sit" str19 = "Islamic State News in the state of Anbar" str20 = "Islamic State: News mandate of Diyala" str21 = "Islamic State: Gaza Division" str22 = "Islamic state." str23 = "Islamic State: News mandate of tenderness" str24 = "Islamic State: News mandate of southern Iraq." str25 = "Front victory: Media insight" str26 = "Front victory: white lighthouse: the state of Idlib" str27 = "Army of the Nation in the environs of Jerusalem: Media Ensign" str28 = "Army of the Nation in the environs of Jerusalem: News Lair mujahideen" str29 = "studios Jundallah" str30 = "Saraya Ashtar: Islamic Resistance in Bahrain." str31 = "Mujahideen Shura Council." str32 = "forum Hmokh Islam." str33 = "Taliban: Solo emirate" str34 = "moving the Taliban - Pakistan" str35 = "moving the Taliban - Pakistan: media age." str36 = "Islamic Party of Turkestan: the voice of Islam." str37 = "mujahideen" str38 = "black" str39 = "Jihad" str40 = "infidel" str41 = "martyrdom" str42= " " str42= " " str43= " " str44= " " str45= " " str46= " " str47= " " str48= " " str49= " " str50= " " str51 = "# Aftaas" str52 = "# Ala_tahin" str53 = "# To Aah_briqh" str54 = "# To Aah_vzan" str55 = "# To Aah_tarabuls" str56 = "# To Aah_tkirc" str57 = "# To Aah_alriqh" str58 = "# Dolh_alkhlavh" str59 = "# To Aah_khrsan" str60 = "# To Aah_albarakh" str61 = "# To Aah_djlh" str62 = "# Shiites" str63 = "I swear to you, the same Tensln to Tensln or Tlnh that bring" str64 = "P to make for the sake of God." str65 = "Hear us if you want fairness." str66 = "jihad of the arbitration law." str67 = "Ibn Taymiyyah mosque" str68 = "God Njani thanks massacre" str69 = "under the Islamic Caliphate Adamha of God." str70 = "Lord certificate in your path." str71 = "We would stay here." str72 = "j arithmetic III" str73 = "Tomorrow we meet Valentines" str74 = "Muhammad and his companions state of Islam." str75 = "Emirate of Iraq - where the wrestler men." str76 = "loyalty to the Muslims and disavowal of the infidels." str77 = "spoke and I just hit what you can." str78 = "Your words are alive and remain silent inanimate"); if len(matches) == 0: print 'I did not find anything' else: print 'The string is in the url'
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question