{"id":9742,"date":"2024-04-08T11:13:36","date_gmt":"2024-04-08T09:13:36","guid":{"rendered":"https:\/\/europe.wordcamp.org\/2024\/?post_type=wcb_session&#038;p=9742"},"modified":"2024-07-10T21:14:08","modified_gmt":"2024-07-10T19:14:08","slug":"replacing-regular-expressions-with-wordpress-new-tag-manipulation-apis","status":"publish","type":"wcb_session","link":"https:\/\/europe.wordcamp.org\/2024\/session\/replacing-regular-expressions-with-wordpress-new-tag-manipulation-apis\/","title":{"rendered":"Replacing Regular Expressions with WordPress&#8217; new tag manipulation APIs"},"content":{"rendered":"\n<div class=\"wp-block-group has-global-padding is-content-justification-left is-layout-constrained wp-container-core-group-is-layout-145137bd wp-block-group-is-layout-constrained\">\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/7RpM3F9xbh0?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-GB&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Do you hate writing Regular Expressions to parse HTML? <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do you understand why this is generally a bad idea?! <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There&#8217;s new API&#8217;s available in WordPress to help you achieve your tasks without writing any REGEX. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This lightning talk will introduce you to these API&#8217;s and provide real world examples of how you might use these to simplify and stabilise your codebases.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you hate writing Regular Expressions to parse HTML? Do you understand why this is generally a bad idea?! There&#8217;s new API&#8217;s available in WordPress to help you achieve your tasks without writing any REGEX. This lightning talk will introduce you to these API&#8217;s and provide real world examples of how you might use these [&hellip;]<\/p>\n","protected":false},"author":13704225,"featured_media":12090,"template":"wp-custom-template-session-single-cupid","meta":{"_crdt_document":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_wcpt_session_time":1718371800,"_wcpt_session_duration":900,"_wcpt_session_type":"session","_wcpt_session_slides":"https:\/\/drive.google.com\/file\/d\/1iPBoVvqkL5VBHnIPldVXD-nVtdLalRXB\/view?usp=sharing","_wcpt_session_video":"https:\/\/wordpress.tv\/2024\/07\/03\/replacing-regular-expressions-with-wordpress-new-tag-manipulation-apis\/","_wcpt_speaker_id":[9511],"footnotes":""},"session_track":[54],"session_category":[57],"class_list":["post-9742","wcb_session","type-wcb_session","status-publish","has-post-thumbnail","hentry","wcb_track-track-2-hall-1","wcb_session_category-development"],"jetpack_shortlink":"https:\/\/wp.me\/peP1kR-2x8","jetpack_sharing_enabled":true,"session_date_time":{"date":"June 14, 2024","time":"15:30"},"session_speakers":[{"id":"9511","slug":"tom-rhodes","name":"Tom Rhodes","link":"https:\/\/europe.wordcamp.org\/2024\/speaker\/tom-rhodes\/"}],"session_cats_rendered":"Development","_links":{"self":[{"href":"https:\/\/europe.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions\/9742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/europe.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/europe.wordcamp.org\/2024\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":11,"href":"https:\/\/europe.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions\/9742\/revisions"}],"predecessor-version":[{"id":16203,"href":"https:\/\/europe.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions\/9742\/revisions\/16203"}],"speakers":[{"embeddable":true,"href":"https:\/\/europe.wordcamp.org\/2024\/wp-json\/wp\/v2\/speakers\/9511"}],"author":[{"embeddable":true,"href":"https:\/\/europe.wordcamp.org\/2024\/wp-json\/wporg\/v1\/users\/tommusrhodus"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/europe.wordcamp.org\/2024\/wp-json\/wp\/v2\/media\/12090"}],"wp:attachment":[{"href":"https:\/\/europe.wordcamp.org\/2024\/wp-json\/wp\/v2\/media?parent=9742"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/europe.wordcamp.org\/2024\/wp-json\/wp\/v2\/session_track?post=9742"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/europe.wordcamp.org\/2024\/wp-json\/wp\/v2\/session_category?post=9742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}