# coding=utf8
# the above tag defines encoding for this document and is for Python 2.x compatibility
import re
regex = r"(.*-.*?<br>.*)"
test_str = ("<div class=\"post hentry\" itemprop=\"blogPost\" itemscope=\"itemscope\" itemtype=\"http://schema.org/BlogPosting\">\n"
"<meta content=\"http://2.bp.blogspot.com/-Xr8J0BgpT-Y/U0r8PrjYqkI/AAAAAAAAAZs/HqpN2aM1dMM/s1600/IMG_4494.jpg\" itemprop=\"image_url\">\n"
"<meta content=\"4117404407927449930\" itemprop=\"blogId\">\n"
"<meta content=\"4496590050094219863\" itemprop=\"postId\">\n"
"<a name=\"4496590050094219863\"></a>\n"
"<h3 class=\"post-title entry-title\" itemprop=\"name\">\n"
"<a href=\"http://kaszomania.blogspot.com/2014/04/roso-z-kasza-jaglana.html\">Rosół z kaszą jaglaną</a>\n"
"</h3>\n"
"<div style=\"float: none;\">\n"
"<iframe allowtransparency=\"true\" frameborder=\"0\" scrolling=\"no\" src=\"http://www.facebook.com/plugins/like.php?href=http://kaszomania.blogspot.com/2014/04/roso-z-kasza-jaglana.html&send=false&layout=standard&show_faces=false&width=450&action=like&font=arial&colorscheme=light&height=35\" style=\"border:none; overflow:hidden; width:450px; height:35px;\"></iframe>\n"
"</div>\n"
"<div class=\"post-header\">\n"
"<div class=\"post-header-line-1\"></div>\n"
"</div>\n"
"<div class=\"post-body entry-content\" id=\"post-body-4496590050094219863\" itemprop=\"description articleBody\">\n"
"<div style=\"text-align: justify;\">\n"
"Jak mawia Ferdek Kiepski - <i>bez mięsa człowiek daleko nie zajedzie...</i> Oczywiście dzisiejszy wpis nie będzie tematem rozważań na temat prawdziwości lub też nie tego stwierdzenia. Nie zmienia to faktu, że każdy czasem lubi zjeść rosół z kury. :) Rosół jest bombą witaminową doskonałą na przeziębienie, a dodatek w postaci kaszy jaglanej nie tylko urozmaici potrawę, ale także podniesie jej walory zdrowotne. Jak dla mnie ziemniaki oraz wszelkie makarony wymiękają przy kaszy jaglanej. ;)</div>\n"
"<br>\n"
"<div class=\"separator\" style=\"clear: both; text-align: center;\">\n"
"<a href=\"http://2.bp.blogspot.com/-Xr8J0BgpT-Y/U0r8PrjYqkI/AAAAAAAAAZs/HqpN2aM1dMM/s1600/IMG_4494.jpg\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img alt=\"Rosół z kaszą jaglaną\" border=\"0\" src=\"http://2.bp.blogspot.com/-Xr8J0BgpT-Y/U0r8PrjYqkI/AAAAAAAAAZs/HqpN2aM1dMM/s1600/IMG_4494.jpg\" height=\"358\" title=\"Rosół z kaszą jaglaną\" width=\"640\"></a></div>\n"
"<br>\n"
"Składniki:<br>\n"
"- kasza jaglana <br>\n"
"- 4-5 udek z kurczaka<br>\n"
"- włoszczyzna: korzeń pietruszki, marchewka, seler, por (ja kupuję gotową w biedronce)<br>\n"
"- cebula<br>\n"
"- natka pietruszki<br>\n"
"- sól<br>\n"
"- pieprz<br>\n"
"- ziele angielskie<br>\n"
"- liść laurowy<br>\n"
"- ok. 2 litry wody<br>\n"
"<br>\n"
"<div class=\"separator\" style=\"clear: both; text-align: center;\">\n"
"<a href=\"http://1.bp.blogspot.com/-MD-NFwHYAVE/U0r8OjOlbEI/AAAAAAAAAZg/sG6n3tuxN2o/s1600/IMG_4458.jpg\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img alt=\"Rosół z kaszą jaglaną\" border=\"0\" src=\"http://1.bp.blogspot.com/-MD-NFwHYAVE/U0r8OjOlbEI/AAAAAAAAAZg/sG6n3tuxN2o/s1600/IMG_4458.jpg\" height=\"358\" title=\"Rosół z kaszą jaglaną\" width=\"640\"></a></div>\n"
"<br>\n"
"<div class=\"separator\" style=\"clear: both; text-align: center;\">\n"
"<a href=\"http://2.bp.blogspot.com/-pq7Nvs_5I7Y/U0r8O8pfgLI/AAAAAAAAAZo/qfJja3ewbcg/s1600/IMG_4491.jpg\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img alt=\"Rosół z kaszą jaglaną\" border=\"0\" src=\"http://2.bp.blogspot.com/-pq7Nvs_5I7Y/U0r8O8pfgLI/AAAAAAAAAZo/qfJja3ewbcg/s1600/IMG_4491.jpg\" height=\"358\" title=\"Rosół z kaszą jaglaną\" width=\"640\"></a></div>\n"
"<ol style=\"text-align: justify;\">\n"
"<li>Gotujemy kaszÄ™ jaglanÄ… na sypko (z dodatkiem soli).</li>\n"
"<li>Myjemy udka i wrzucamy do gara. Zalewamy ok 2 litrami zimnej wody i doprowadzamy do wrzenia. Gotujemy na bardzo małym ogniu. Zbieramy tzw. szumowiny.</li>\n"
"<li>Kroimy warzywa. Seler w kostkę. Marchewkę, korzeń pietruszki, pora w paski. Cebulę kroimy na dwie połówki. Wszystkie warzywa wrzucamy do gara i dalej gotujemy.</li>\n"
"<li>Dodajemy przyprawy - sól, pieprz, liść laurowy, ziele angielskie, natkę pietruszki w całości.</li>\n"
"<li>Pozostawiamy rosół aby \"pyrkał :D\" się przez ok. 1,5 godziny. Jeżeli zbyt mało doprawiliście możecie w międzyczasie dodawać przyprawy i sprawdzać smak.</li>\n"
"<li>Rosół jest gotowy, kiedy zacznie smakować jak rosół i kiedy warzywa będą wystarczająco miękkie. Nie wyrzucamy z rosołu żadnych warzyw. To barbarzyństwo!!!:)</li>\n"
"<li>Przed podaniem, do miseczki wsypujemy kaszę jaglaną, a następnie całość zalewamy gorącym rosołem.</li>\n"
"</ol>\n"
"<div style=\"text-align: justify;\">\n"
"SMACZNEGO! :) </div>\n"
"<br>\n"
"<div class=\"separator\" style=\"clear: both; text-align: center;\">\n"
"<a href=\"http://2.bp.blogspot.com/-Xr8J0BgpT-Y/U0r8PrjYqkI/AAAAAAAAAZ0/6KtSzSwbqYA/s1600/IMG_4494.jpg\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img alt=\"Rosół z kaszą jaglaną\" border=\"0\" src=\"http://2.bp.blogspot.com/-Xr8J0BgpT-Y/U0r8PrjYqkI/AAAAAAAAAZ0/6KtSzSwbqYA/s1600/IMG_4494.jpg\" height=\"358\" title=\"Rosół z kaszą jaglaną\" width=\"640\"></a></div>\n"
"<br>\n"
"<br>\n"
"<div style=\"clear: both;\"></div>\n"
"<div id=\"lws_0\"><div class=\"linkwithin_outer\" style=\"margin: 0; border: 0; padding: 0; clear: both; \">\n"
"<div id=\"linkwithin_inner\" class=\"linkwithin_inner\" style=\"\n"
" margin: 0;\n"
" border: 0;\n"
" padding: 0;\n"
" width: 596px;\n"
" \n"
" \">\n"
" <div class=\"linkwithin_text\" id=\"linkwithin_text_0\" style=\"\n"
" margin: 0;\n"
" border: 0;\n"
" padding: 20px 0 5px;\n"
" text-align: left;\n"
" font-weight: bold;\n"
" \">Inne dania z kaszÄ…:</div>\n\n"
" <div class=\"linkwithin_posts\" id=\"linkwithin_posts_0\" style=\"margin: 0; border: 0; padding: 0\">\n"
" \n\n\n"
"<a name=\"linkwithin_link_0\" href=\"http://kaszomania.blogspot.com/2014/03/kasza-jaglana-z-warzywami-na-patelnie.html\" onmousedown=\"this.href='http://widget6.linkwithin.com/redirect?url=http%3A//kaszomania.blogspot.com/2014/03/kasza-jaglana-z-warzywami-na-patelnie.html&rtype=&vars=%5B%22http%3A//kaszomania.blogspot.com/search/label/zupy%22%2C%202065963%2C%200%2C%20%22http%3A//kaszomania.blogspot.com/2014/04/roso-z-kasza-jaglana.html%22%2C%20383537545%2C%200%2C%20383537563%5D&ts=' + (new Date()).getTime(); return true;\" style=\"\n"
" display: block;\n"
" float: left;\n\n"
" \n"
" border-bottom: none;\n\n"
" \n\n"
" margin: 0;\n"
" padding: 6px;\n"
" text-decoration: none;\n"
" text-align: left;\n"
" cursor: pointer;\n"
" \" onmouseover=\"this.style.backgroundColor='#dde'\" onmouseout=\"this.style.backgroundColor=''\">\n"
"<div style=\"width: 106px; height: 165px; margin: 0; border: 0; padding: 0\">\n\n"
"<div class=\"linkwithin_img_0\" style=\"\n"
" margin: 0;\n"
" border: 1px solid #ddd;\n"
" padding: 2px;\n"
" width: auto;\n"
" height: auto;\n"
" \">\n\n"
" <div style=\"background: url(http://images3.linkwithin.com/images/383537563.jpg) no-repeat; width: 100px; height: 100px; margin: 0; border: 0; padding: 0\"></div>\n\n\n"
"</div>\n\n"
"<div class=\"linkwithin_title linkwithin_title_0\" style=\"margin: 3px 0px 0px; border: 0px; padding: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: arial; color: rgb(102, 102, 102);\">\n"
" Kasza jaglana z warzywami na patelniÄ™\n"
"</div>\n\n"
"</div>\n"
"</a>\n\n"
"<a name=\"linkwithin_link_0\" href=\"http://kaszomania.blogspot.com/2014/01/saatka-z-kaszy-jaglanej-i-ososia.html\" onmousedown=\"this.href='http://widget6.linkwithin.com/redirect?url=http%3A//kaszomania.blogspot.com/2014/01/saatka-z-kaszy-jaglanej-i-ososia.html&rtype=&vars=%5B%22http%3A//kaszomania.blogspot.com/search/label/zupy%22%2C%202065963%2C%200%2C%20%22http%3A//kaszomania.blogspot.com/2014/04/roso-z-kasza-jaglana.html%22%2C%20383537545%2C%201%2C%20352602665%5D&ts=' + (new Date()).getTime(); return true;\" style=\"\n"
" display: block;\n"
" float: left;\n\n"
" \n"
" border-left: 1px solid #ddd;\n"
" \n"
" border-bottom: none;\n\n"
" \n\n"
" margin: 0;\n"
" padding: 6px;\n"
" text-decoration: none;\n"
" text-align: left;\n"
" cursor: pointer;\n"
" \" onmouseover=\"this.style.backgroundColor='#dde'\" onmouseout=\"this.style.backgroundColor=''\">\n"
"<div style=\"width: 106px; height: 165px; margin: 0; border: 0; padding: 0\">\n\n"
"<div class=\"linkwithin_img_0\" style=\"\n"
" margin: 0;\n"
" border: 1px solid #ddd;\n"
" padding: 2px;\n"
" width: auto;\n"
" height: auto;\n"
" \">\n\n"
" <div style=\"background: url(http://images3.linkwithin.com/images/352602665.jpg) no-repeat; width: 100px; height: 100px; margin: 0; border: 0; padding: 0\"></div>\n\n\n"
"</div>\n\n"
"<div class=\"linkwithin_title linkwithin_title_0\" style=\"margin: 3px 0px 0px; border: 0px; padding: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: arial; color: rgb(102, 102, 102);\">\n"
" Sałatka z kaszy jaglanej i łososia\n"
"</div>\n\n"
"</div>\n"
"</a>\n\n"
"<a name=\"linkwithin_link_0\" href=\"http://kaszomania.blogspot.com/2014/03/kasza-jaglana-z-bananowym-gulaszem.html\" onmousedown=\"this.href='http://widget6.linkwithin.com/redirect?url=http%3A//kaszomania.blogspot.com/2014/03/kasza-jaglana-z-bananowym-gulaszem.html&rtype=&vars=%5B%22http%3A//kaszomania.blogspot.com/search/label/zupy%22%2C%202065963%2C%200%2C%20%22http%3A//kaszomania.blogspot.com/2014/04/roso-z-kasza-jaglana.html%22%2C%20383537545%2C%202%2C%20383537567%5D&ts=' + (new Date()).getTime(); return true;\" style=\"\n"
" display: block;\n"
" float: left;\n\n"
" \n"
" border-left: 1px solid #ddd;\n"
" \n"
" border-bottom: none;\n\n"
" \n\n"
" margin: 0;\n"
" padding: 6px;\n"
" text-decoration: none;\n"
" text-align: left;\n"
" cursor: pointer;\n"
" \" onmouseover=\"this.style.backgroundColor='#dde'\" onmouseout=\"this.style.backgroundColor=''\">\n"
"<div style=\"width: 106px; height: 165px; margin: 0; border: 0; padding: 0\">\n\n"
"<div class=\"linkwithin_img_0\" style=\"\n"
" margin: 0;\n"
" border: 1px solid #ddd;\n"
" padding: 2px;\n"
" width: auto;\n"
" height: auto;\n"
" \">\n\n"
" <div style=\"background: url(http://images3.linkwithin.com/images/383537567.jpg) no-repeat; width: 100px; height: 100px; margin: 0; border: 0; padding: 0\"></div>\n\n\n"
"</div>\n\n"
"<div class=\"linkwithin_title linkwithin_title_0\" style=\"margin: 3px 0px 0px; border: 0px; padding: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: arial; color: rgb(102, 102, 102);\">\n"
" Kasza jaglana z bananowym gulaszem\n"
"</div>\n\n"
"</div>\n"
"</a>\n\n"
"<a name=\"linkwithin_link_0\" href=\"http://kaszomania.blogspot.com/2014/02/zupa-krem-z-kaszy-jaglanej-i-szpinaku.html\" onmousedown=\"this.href='http://widget6.linkwithin.com/redirect?url=http%3A//kaszomania.blogspot.com/2014/02/zupa-krem-z-kaszy-jaglanej-i-szpinaku.html&rtype=&vars=%5B%22http%3A//kaszomania.blogspot.com/search/label/zupy%22%2C%202065963%2C%200%2C%20%22http%3A//kaszomania.blogspot.com/2014/04/roso-z-kasza-jaglana.html%22%2C%20383537545%2C%203%2C%20383537577%5D&ts=' + (new Date()).getTime(); return true;\" style=\"\n"
" display: block;\n"
" float: left;\n\n"
" \n"
" border-left: 1px solid #ddd;\n"
" \n"
" border-bottom: none;\n\n"
" \n\n"
" margin: 0;\n"
" padding: 6px;\n"
" text-decoration: none;\n"
" text-align: left;\n"
" cursor: pointer;\n"
" \" onmouseover=\"this.style.backgroundColor='#dde'\" onmouseout=\"this.style.backgroundColor=''\">\n"
"<div style=\"width: 106px; height: 165px; margin: 0; border: 0; padding: 0\">\n\n"
"<div class=\"linkwithin_img_0\" style=\"\n"
" margin: 0;\n"
" border: 1px solid #ddd;\n"
" padding: 2px;\n"
" width: auto;\n"
" height: auto;\n"
" \">\n\n"
" <div style=\"background: url(http://images3.linkwithin.com/images/383537577.jpg) no-repeat; width: 100px; height: 100px; margin: 0; border: 0; padding: 0\"></div>\n\n\n"
"</div>\n\n"
"<div class=\"linkwithin_title linkwithin_title_0\" style=\"margin: 3px 0px 0px; border: 0px; padding: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: arial; color: rgb(102, 102, 102);\">\n"
" Zupa krem z kaszy jaglanej i szpinaku\n"
"</div>\n\n"
"</div>\n"
"</a>\n\n"
"<a name=\"linkwithin_link_0\" href=\"http://kaszomania.blogspot.com/2014/01/zupa-krem-z-kukurydzy-i-kaszy-jaglanej.html\" id=\"linkwithin_link_last\" onmousedown=\"this.href='http://widget6.linkwithin.com/redirect?url=http%3A//kaszomania.blogspot.com/2014/01/zupa-krem-z-kukurydzy-i-kaszy-jaglanej.html&rtype=&vars=%5B%22http%3A//kaszomania.blogspot.com/search/label/zupy%22%2C%202065963%2C%200%2C%20%22http%3A//kaszomania.blogspot.com/2014/04/roso-z-kasza-jaglana.html%22%2C%20383537545%2C%204%2C%20383537619%5D&ts=' + (new Date()).getTime(); return true;\" style=\"\n"
" display: block;\n"
" float: left;\n\n"
" \n"
" border-left: 1px solid #ddd;\n"
" \n"
" border-bottom: none;\n\n"
" \n\n"
" margin: 0;\n"
" padding: 6px;\n"
" text-decoration: none;\n"
" text-align: left;\n"
" cursor: pointer;\n"
" \" onmouseover=\"this.style.backgroundColor='#dde'\" onmouseout=\"this.style.backgroundColor=''\">\n"
"<div style=\"width: 106px; height: 165px; margin: 0; border: 0; padding: 0\">\n\n"
"<div class=\"linkwithin_img_0\" style=\"\n"
" margin: 0;\n"
" border: 1px solid #ddd;\n"
" padding: 2px;\n"
" width: auto;\n"
" height: auto;\n"
" \">\n\n"
" <div style=\"background: url(http://images3.linkwithin.com/images/383537619.jpg) no-repeat; width: 100px; height: 100px; margin: 0; border: 0; padding: 0\"></div>\n\n\n"
"</div>\n\n"
"<div class=\"linkwithin_title linkwithin_title_0\" style=\"margin: 3px 0px 0px; border: 0px; padding: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: arial; color: rgb(102, 102, 102);\">\n"
" Zupa krem z kukurydzy i kaszy jaglanej\n"
"</div>\n\n"
"</div>\n"
"</a>\n\n\n\n"
" </div>\n\n"
" <div id=\"linkwithin_logo_0\" style=\"\n"
" clear: both;\n"
" margin: 0 0 20px 0;\n"
" border: 0;\n"
" padding: 5px 6px 0 0;\n"
" text-align: right;\n"
" \">\n"
" <a id=\"linkwithin_logolink_0\" href=\"http://www.linkwithin.com/learn?ref=widget\" style=\"\n"
" font: 10px arial;\n"
" color: #bbb;\n"
" text-decoration: none;\n"
" border-bottom: none;\n"
" \" onmouseover=\"this.style.textDecoration='underline'\" onmouseout=\"this.style.textDecoration='none'\" target=\"_blank\">Linkwithin</a>\n"
" </div>\n"
"</div>\n"
"</div></div></div>\n"
"<div class=\"post-footer\">\n"
"<div class=\"post-footer-line post-footer-line-1\"><span class=\"post-author vcard\">\n"
"Autor:\n"
"<span class=\"fn\" itemprop=\"author\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Person\">\n"
"<meta content=\"http://www.blogger.com/profile/07377519070516761764\" itemprop=\"url\">\n"
"<a class=\"g-profile\" href=\"http://www.blogger.com/profile/07377519070516761764\" rel=\"author\" title=\"author profile\" data-gapiscan=\"true\" data-onload=\"true\" data-gapiattached=\"true\">\n"
"<span itemprop=\"name\">Kaszomaniak</span>\n"
"</a>\n"
"</span>\n"
"</span>\n"
"<span class=\"post-timestamp\">\n"
"o\n"
"<meta content=\"http://kaszomania.blogspot.com/2014/04/roso-z-kasza-jaglana.html\" itemprop=\"url\">\n"
"<a class=\"timestamp-link\" href=\"http://kaszomania.blogspot.com/2014/04/roso-z-kasza-jaglana.html\" rel=\"bookmark\" title=\"permanent link\"><abbr class=\"published\" itemprop=\"datePublished\" title=\"2014-04-14T19:00:00+02:00\">19:00</abbr></a>\n"
"</span>\n"
"<span class=\"post-comment-link\">\n"
"<a class=\"comment-link\" href=\"http://kaszomania.blogspot.com/2014/04/roso-z-kasza-jaglana.html#comment-form\" onclick=\"\">\n"
"2 komentarze:\n"
" </a>\n"
"</span>\n"
"<span class=\"post-icons\">\n"
"<span class=\"item-control blog-admin pid-56923570\">\n"
"<a href=\"http://www.blogger.com/post-edit.g?blogID=4117404407927449930&postID=4496590050094219863&from=pencil\" title=\"Edytuj post\">\n"
"<img alt=\"\" class=\"icon-action\" height=\"18\" src=\"http://img2.blogblog.com/img/icon18_edit_allbkg.gif\" width=\"18\">\n"
"</a>\n"
"</span>\n"
"</span>\n"
"<div class=\"post-share-buttons goog-inline-block\">\n"
"<a class=\"goog-inline-block share-button sb-email\" href=\"http://www.blogger.com/share-post.g?blogID=4117404407927449930&postID=4496590050094219863&target=email\" target=\"_blank\" title=\"Wyślij pocztą e-mail\"><span class=\"share-button-link-text\">Wyślij pocztą e-mail</span></a><a class=\"goog-inline-block share-button sb-blog\" href=\"http://www.blogger.com/share-post.g?blogID=4117404407927449930&postID=4496590050094219863&target=blog\" onclick=\"window.open(this.href, "_blank", "height=270,width=475"); return false;\" target=\"_blank\" title=\"Wrzuć na bloga\"><span class=\"share-button-link-text\">Wrzuć na bloga</span></a><a class=\"goog-inline-block share-button sb-twitter\" href=\"http://www.blogger.com/share-post.g?blogID=4117404407927449930&postID=4496590050094219863&target=twitter\" target=\"_blank\" title=\"Udostępnij w usłudze Twitter\"><span class=\"share-button-link-text\">Udostępnij w usłudze Twitter</span></a><a class=\"goog-inline-block share-button sb-facebook\" href=\"http://www.blogger.com/share-post.g?blogID=4117404407927449930&postID=4496590050094219863&target=facebook\" onclick=\"window.open(this.href, "_blank", "height=430,width=640"); return false;\" target=\"_blank\" title=\"Udostępnij w usłudze Facebook\"><span class=\"share-button-link-text\">Udostępnij w usłudze Facebook</span></a><a class=\"goog-inline-block share-button sb-pinterest\" href=\"http://www.blogger.com/share-post.g?blogID=4117404407927449930&postID=4496590050094219863&target=pinterest\" target=\"_blank\" title=\"Udostępnij w serwisie Pinterest\"><span class=\"share-button-link-text\">Udostępnij w serwisie Pinterest</span></a><div class=\"goog-inline-block dummy-container\"><div id=\"___plusone_0\" style=\"text-indent: 0px; margin: 0px; padding: 0px; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; display: inline-block; width: 300px; height: 20px; background: transparent;\"><iframe frameborder=\"0\" hspace=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" style=\"position: static; top: 0px; width: 300px; margin: 0px; border-style: none; left: 0px; visibility: visible; height: 20px;\" tabindex=\"0\" vspace=\"0\" width=\"100%\" id=\"I0_1411592047953\" name=\"I0_1411592047953\" src=\"https://apis.google.com/u/0/se/0/_/+1/fastbutton?usegapi=1&source=blogger%3Ablog%3Aplusone&size=medium&width=300&annotation=inline&hl=pl&origin=http%3A%2F%2Fkaszomania.blogspot.com&url=http%3A%2F%2Fkaszomania.blogspot.com%2F2014%2F04%2Froso-z-kasza-jaglana.html&gsrc=3p&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.pl.AJ1Kb6hzPQA.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Ft%3Dzcms%2Frs%3DAItRSTOQ2GvmXAWDDhyJad6LrCO_cwamnw#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh&id=I0_1411592047953&parent=http%3A%2F%2Fkaszomania.blogspot.com&pfname=&rpctoken=16053696\" data-gapiattached=\"true\" title=\"+1\"></iframe></div></div>\n"
"</div>\n"
"</div>\n"
"<div class=\"post-footer-line post-footer-line-2\"><span class=\"post-labels\">\n"
"Etykiety:\n"
"<a href=\"http://kaszomania.blogspot.com/search/label/dr%C3%B3b\" rel=\"tag\">drób</a>,\n"
"<a href=\"http://kaszomania.blogspot.com/search/label/kasza%20jaglana\" rel=\"tag\">kasza jaglana</a>,\n"
"<a href=\"http://kaszomania.blogspot.com/search/label/marchew\" rel=\"tag\">marchew</a>,\n"
"<a href=\"http://kaszomania.blogspot.com/search/label/pietruszka\" rel=\"tag\">pietruszka</a>,\n"
"<a href=\"http://kaszomania.blogspot.com/search/label/warzywa\" rel=\"tag\">warzywa</a>,\n"
"<a href=\"http://kaszomania.blogspot.com/search/label/zupy\" rel=\"tag\">zupy</a>\n"
"</span>\n"
"</div>\n"
"<div class=\"post-footer-line post-footer-line-3\"><span class=\"post-location\">\n"
"</span>\n"
"</div>\n"
"</div>\n"
"</div>")
subst = "$1"
# You can manually specify the number of replacements by changing the 4th argument
result = re.sub(regex, subst, test_str, 0, re.MULTILINE)
if result:
print (result)
# Note: for Python 2.7 compatibility, use ur"" to prefix the regex and u"" to prefix the test string and substitution.
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Python, please visit: https://docs.python.org/3/library/re.html