{"id":2023,"date":"2021-06-14T04:44:33","date_gmt":"2021-06-14T04:44:33","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=2023"},"modified":"2021-06-14T12:37:17","modified_gmt":"2021-06-14T12:37:17","slug":"tidyx-63-regex-lookarounds","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-63-regex-lookarounds\/","title":{"rendered":"TidyX 63: Regex Lookarounds"},"content":{"rendered":"<p>Continuing with our series on regex expressions (<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-61-regular-expressions-101\/\">TidyX 61: Regex 101<\/a><\/strong><\/span>, <span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-62-applied-regex\/\">TidyX 62: Applied Regex<\/a><\/strong><\/span>), this week <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/ellis_hughes\">Ellis Hughes<\/a><\/span><\/strong> and I discuss regex lookarounds, as a way of setting new anchors when parsing text strings. We follow this up by taking the NBA play-by-play data and turning the text into minutes played by players in a game and then plot this data in a gantt chart.<\/p>\n<p><a href=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2021\/06\/playing_time_gantt.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2024\" src=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2021\/06\/playing_time_gantt-1024x567.png\" alt=\"\" width=\"625\" height=\"346\" srcset=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2021\/06\/playing_time_gantt-1024x567.png 1024w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2021\/06\/playing_time_gantt-300x166.png 300w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2021\/06\/playing_time_gantt-768x425.png 768w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2021\/06\/playing_time_gantt-624x345.png 624w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2021\/06\/playing_time_gantt.png 1064w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p>To watch our screen cast, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/watch?v=GaEXVcEApCE\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n<p>To access our code, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/thebioengineer\/TidyX\/blob\/master\/TidyTuesday_Explained\/063-Data_Cleaning_regex_lookarounds\/Episode%2063.R\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Continuing with our series on regex expressions (TidyX 61: Regex 101, TidyX 62: Applied Regex), this week Ellis Hughes and I discuss regex lookarounds, as a way of setting new anchors when parsing text strings. We follow this up by taking the NBA play-by-play data and turning the text into minutes played by players in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-2023","post","type-post","status-publish","format-standard","hentry","category-tidyx-screen-cast"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/2023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/comments?post=2023"}],"version-history":[{"count":1,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/2023\/revisions"}],"predecessor-version":[{"id":2025,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/2023\/revisions\/2025"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=2023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=2023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=2023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}