{"id":13432,"date":"2016-06-22T12:15:09","date_gmt":"2016-06-22T09:15:09","guid":{"rendered":"https:\/\/www.webcodegeeks.com\/?p=13432"},"modified":"2016-06-20T19:08:37","modified_gmt":"2016-06-20T16:08:37","slug":"python-regex-matching-foreign-charactersunicode-letters","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/","title":{"rendered":"Python: Regex &#8211; matching foreign characters\/unicode letters"},"content":{"rendered":"<p>I\u2019ve been back in the land of screen scrapping this week extracting data from the <a href=\"http:\/\/gameofthrones.wikia.com\/wiki\">Game of Thrones wiki<\/a> and needed to write a regular expression to pull out characters and actors.<\/p>\n<p>Here are some examples of the format of the data:<\/p>\n<pre class=\"brush:bash\">Peter Dinklage as Tyrion Lannister\r\nDaniel Naprous as Oznak zo Pahl(credited as Stunt Performer)\r\nFilip Lozi\u0107 as Young Nobleman\r\nMorgan C. Jones as a Braavosi captain\r\nAdewale Akinnuoye-Agbaje as Malko<\/pre>\n<p>So the pattern is:<\/p>\n<pre class=\"brush:bash\">&lt;actor&gt; as &lt;character&gt;<\/pre>\n<p>optionally followed by some other text that we\u2019re not interested in.<\/p>\n<p>The output I want to get is:<\/p>\n<pre class=\"brush:bash\">Peter Dinklage, Tyrion Lannister\r\nDaniel Naprous, Oznak zo Pahl\r\nFilip Lozi\u0107, Young Nobleman\r\nMorgan C. Jones, a Braavosi captain\r\nAdewale Akinnuoye-Agbaje, Malko<\/pre>\n<p>I started using the \u2018split\u2019 command on the word \u2018as\u2019 but that broke down when I realised some of the characters had the letters \u2018as\u2019 in the middle of their name. So regex it is!<\/p>\n<p>This was my first attempt:<\/p>\n<pre class=\"brush:py\">import re\r\n\u00a0\r\nstrings = [\r\n    \"Peter Dinklage as Tyrion Lannister\",\r\n    \"Filip Lozi\u0107 as Young Nobleman\",\r\n    \"Daniel Naprous as Oznak zo Pahl(credited as Stunt Performer)\",\r\n    \"Morgan C. Jones as a Braavosi captain\",\r\n    \"Adewale Akinnuoye-Agbaje as Malko\"\r\n]\r\n\u00a0\r\nregex = \"([A-Za-z\\-'\\. ]*) as ([A-Za-z\\-'\\. ]*)\"\r\n\u00a0\r\nfor string in strings:\r\n    print string\r\n    match = re.match( regex, string)\r\n    if match is not None:\r\n        print match.groups()\r\n    else:\r\n        print \"FAIL\"\r\n\tprint \"\"<\/pre>\n<pre class=\"brush:bash\">Peter Dinklage as Tyrion Lannister\r\n('Peter Dinklage', 'Tyrion Lannister')\r\n\u00a0\r\nFilip Lozi\u0107 as Young Nobleman\r\nFAIL\r\n\u00a0\r\nDaniel Naprous as Oznak zo Pahl(credited as Stunt Performer)\r\n('Daniel Naprous', 'Oznak zo Pahl')\r\n\u00a0\r\nMorgan C. Jones as a Braavosi captain\r\n('Morgan C. Jones', 'a Braavosi captain')\r\n\u00a0\r\nAdewale Akinnuoye-Agbaje as Malko\r\n('Adewale Akinnuoye-Agbaje', 'Malko')<\/pre>\n<p>It works for 4 of the 5 scenarios but now for Filip Lozi\u0107. The \u2018\u0107\u2019 character causes the issue so we need to be able to match foreign characters which the current charset I defined in the regex doesn\u2019t capture.<\/p>\n<p>I came across <a href=\"http:\/\/stackoverflow.com\/questions\/3009993\/regex-what-would-be-regex-for-matching-foreign-characters\">this Stack Overflow post<\/a> which said that in some regex libraries you can use \u2018\\p{L}\u2019 to match all letters. I gave that a try:<\/p>\n<pre class=\"brush:py\">regex = \"([\\p{L}\\-'\\. ]*) as ([\\p{L}\\-'\\. ]*)\"<\/pre>\n<p>And then re-ran the script:<\/p>\n<pre class=\"brush:bash\">Peter Dinklage as Tyrion Lannister\r\nFAIL\r\n\u00a0\r\nDaniel Naprous as Oznak zo Pahl(credited as Stunt Performer)\r\nFAIL\r\n\u00a0\r\nFilip Lozi\u0107 as Young Nobleman\r\nFAIL\r\n\u00a0\r\nMorgan C. Jones as a Braavosi captain\r\nFAIL\r\n\u00a0\r\nAdewale Akinnuoye-Agbaje as Malko\r\nFAIL<\/pre>\n<p>Hmmm, not sure if I did it wrong or if that isn\u2019t available in Python. I\u2019ll assume the latter but feel free to correct me in the comments and I\u2019ll update the post.<\/p>\n<p>I went search again and found <a href=\"http:\/\/stackoverflow.com\/questions\/8923949\/matching-only-a-unicode-letter-in-python-re\">this post<\/a> which suggested another approach:<\/p>\n<p>You can construct a new character class:<\/p>\n<p>[^\\W\\d_]<\/p>\n<p>instead of \\w. Translated into English, it means \u201cAny character that is not a non-alphanumeric character ([^\\W] is the same as \\w), but that is also not a digit and not an underscore\u201d.<\/p>\n<p>Let\u2019s try plugging that in:<\/p>\n<pre class=\"brush:py\">regex = \"([A-Za-z\\-'\\.^\\W\\d_ ]*) as ([A-Za-z\\-'\\.^\\W\\d_ ]*)\"<\/pre>\n<pre class=\"brush:bash\">Peter Dinklage as Tyrion Lannister\r\n('Peter Dinklage', 'Tyrion Lannister')\r\n\u00a0\r\nDaniel Naprous as Oznak zo Pahl(credited as Stunt Performer)\r\n('Daniel Naprous as Oznak zo Pahl(credited', 'Stunt Performer)')\r\n\u00a0\r\nFilip Lozi\u0107 as Young Nobleman\r\n('Filip Lozi\\xc4\\x87', 'Young Nobleman')\r\n\u00a0\r\nMorgan C. Jones as a Braavosi captain\r\n('Morgan C. Jones', 'a Braavosi captain')\r\n\u00a0\r\nAdewale Akinnuoye-Agbaje as Malko\r\n('Adewale Akinnuoye-Agbaje', 'Malko')<\/pre>\n<p>So that\u2019s fixed Filip but now Daniel Naprous is being incorrectly parsed.<\/p>\n<p>For Attempt #4 I decided to try excluding what I don\u2019t want instead:<\/p>\n<pre class=\"brush:py\">regex = \"([^0-9\\(]*) as ([^0-9\\(]*)\"<\/pre>\n<pre class=\"brush:bash\">Peter Dinklage as Tyrion Lannister\r\n('Peter Dinklage', 'Tyrion Lannister')\r\n\u00a0\r\nDaniel Naprous as Oznak zo Pahl(credited as Stunt Performer)\r\n('Daniel Naprous', 'Oznak zo Pahl')\r\n\u00a0\r\nFilip Lozi\u0107 as Young Nobleman\r\n('Filip Lozi\\xc4\\x87', 'Young Nobleman')\r\n\u00a0\r\nMorgan C. Jones as a Braavosi captain\r\n('Morgan C. Jones', 'a Braavosi captain')\r\n\u00a0\r\nAdewale Akinnuoye-Agbaje as Malko\r\n('Adewale Akinnuoye-Agbaje', 'Malko')<\/pre>\n<p>That does the job but has exposed my lack of regex skillz. If you know a better way let me know in the comments.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/www.markhneedham.com\/blog\/2016\/06\/18\/python-regex-matching-foreign-charactersunicode-letters\/\">Python: Regex &#8211; matching foreign characters\/unicode letters<\/a> from our <a href=\"http:\/\/www.webcodegeeks.com\/join-us\/wcg\/\">WCG partner<\/a> Mark Needham at the <a href=\"http:\/\/www.markhneedham.com\/blog\/\">Mark Needham Blog<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019ve been back in the land of screen scrapping this week extracting data from the Game of Thrones wiki and needed to write a regular expression to pull out characters and actors. Here are some examples of the format of the data: Peter Dinklage as Tyrion Lannister Daniel Naprous as Oznak zo Pahl(credited as Stunt &hellip;<\/p>\n","protected":false},"author":48,"featured_media":1651,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[],"class_list":["post-13432","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python: Regex - matching foreign characters\/unicode letters - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"I\u2019ve been back in the land of screen scrapping this week extracting data from the Game of Thrones wiki and needed to write a regular expression to pull\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python: Regex - matching foreign characters\/unicode letters - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"I\u2019ve been back in the land of screen scrapping this week extracting data from the Game of Thrones wiki and needed to write a regular expression to pull\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-22T09:15:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mark Needham\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark Needham\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/\"},\"author\":{\"name\":\"Mark Needham\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/848a54e2ee724e46069ce36c2e52e98e\"},\"headline\":\"Python: Regex &#8211; matching foreign characters\/unicode letters\",\"datePublished\":\"2016-06-22T09:15:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/\"},\"wordCount\":352,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/\",\"name\":\"Python: Regex - matching foreign characters\/unicode letters - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg\",\"datePublished\":\"2016-06-22T09:15:09+00:00\",\"description\":\"I\u2019ve been back in the land of screen scrapping this week extracting data from the Game of Thrones wiki and needed to write a regular expression to pull\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python: Regex &#8211; matching foreign characters\/unicode letters\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/848a54e2ee724e46069ce36c2e52e98e\",\"name\":\"Mark Needham\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5489baed26ce2d932bf951ecfb47afe80bec45d3648c23521d87c83b8f1c3ea9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5489baed26ce2d932bf951ecfb47afe80bec45d3648c23521d87c83b8f1c3ea9?s=96&d=mm&r=g\",\"caption\":\"Mark Needham\"},\"sameAs\":[\"http:\/\/www.markhneedham.com\/blog\/\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/mark-needham\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python: Regex - matching foreign characters\/unicode letters - Web Code Geeks - 2026","description":"I\u2019ve been back in the land of screen scrapping this week extracting data from the Game of Thrones wiki and needed to write a regular expression to pull","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/","og_locale":"en_US","og_type":"article","og_title":"Python: Regex - matching foreign characters\/unicode letters - Web Code Geeks - 2026","og_description":"I\u2019ve been back in the land of screen scrapping this week extracting data from the Game of Thrones wiki and needed to write a regular expression to pull","og_url":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2016-06-22T09:15:09+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg","type":"image\/jpeg"}],"author":"Mark Needham","twitter_card":"summary_large_image","twitter_creator":"@webcodegeeks","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Mark Needham","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/"},"author":{"name":"Mark Needham","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/848a54e2ee724e46069ce36c2e52e98e"},"headline":"Python: Regex &#8211; matching foreign characters\/unicode letters","datePublished":"2016-06-22T09:15:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/"},"wordCount":352,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/","url":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/","name":"Python: Regex - matching foreign characters\/unicode letters - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg","datePublished":"2016-06-22T09:15:09+00:00","description":"I\u2019ve been back in the land of screen scrapping this week extracting data from the Game of Thrones wiki and needed to write a regular expression to pull","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/11\/python-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/python\/python-regex-matching-foreign-charactersunicode-letters\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/www.webcodegeeks.com\/category\/python\/"},{"@type":"ListItem","position":3,"name":"Python: Regex &#8211; matching foreign characters\/unicode letters"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/848a54e2ee724e46069ce36c2e52e98e","name":"Mark Needham","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5489baed26ce2d932bf951ecfb47afe80bec45d3648c23521d87c83b8f1c3ea9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5489baed26ce2d932bf951ecfb47afe80bec45d3648c23521d87c83b8f1c3ea9?s=96&d=mm&r=g","caption":"Mark Needham"},"sameAs":["http:\/\/www.markhneedham.com\/blog\/"],"url":"https:\/\/www.webcodegeeks.com\/author\/mark-needham\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/13432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/48"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=13432"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/13432\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/1651"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=13432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=13432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=13432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}