[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"storyblok:blog\u002Fjavascript-replaceall-with-regex-and-return-function:version=published&resolve_relations=blog-entry.categories":3},{"stories":4,"story":5},[5],{"name":6,"created_at":7,"published_at":8,"updated_at":9,"id":10,"uuid":11,"content":12,"slug":51,"full_slug":52,"sort_by_date":35,"position":53,"tag_list":54,"is_startpage":55,"parent_id":56,"meta_data":35,"group_id":57,"first_published_at":58,"release_id":35,"lang":59,"path":35,"alternates":60,"default_full_slug":35,"translated_slugs":35},"Javascript ReplaceAll with regex and return function","2022-06-20T17:45:16.722Z","2022-07-08T19:39:19.417Z","2022-07-08T19:39:19.437Z",152916338,"577f05a1-f845-44f1-8f1e-5070b4db2085",{"_uid":13,"date":14,"content":15,"component":48,"categories":49},"e9efcfa9-7edf-4151-b339-01ed5814e3d3","2022-05-23 17:24:16",[16],{"_uid":17,"text":18,"component":26},"73a07bc5-e8b4-433e-924b-e1a77d1e1db9",{"type":19,"content":20},"doc",[21,27,36,40,44],{"type":22,"content":23},"paragraph",[24],{"text":25,"type":26},"Today I had to do some changes to a string that I can not modify on the creation end. To do this I settled on doing a replaceAll with a replace function!","text",{"type":22,"content":28},[29],{"text":30,"type":26,"marks":31},"https:\u002F\u002Fgist.github.com\u002FSebbeJohansson\u002F3444408646d95383b75434c61c46933c",[32],{"type":33,"attrs":34},"link",{"href":30,"title":35},null,{"type":22,"content":37},[38],{"text":39,"type":26},"Since I need to make sure that its a complete  tag, I had to use namedGroups to be able to put in the new data where I wanted it.",{"type":22,"content":41},[42],{"text":43,"type":26},"I think this worked fairly well!",{"type":22,"content":45},[46],{"text":47,"type":26},"(Mainly posting this to have some recording of it, if I ever need it again)","blog-entry",[50],"36c5f0a3-3461-4b49-9758-537bdda01a2c","javascript-replaceall-with-regex-and-return-function","blog\u002Fjavascript-replaceall-with-regex-and-return-function",90,[],false,152811822,"6b14678c-e750-4dea-a54e-c9f88e9d8cf8","2022-05-23T17:24:16.000Z","default",[],1787062196222]