{"id":11964,"date":"2020-11-17T16:39:40","date_gmt":"2020-11-18T00:39:40","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=11964"},"modified":"2023-12-01T04:04:08","modified_gmt":"2023-12-01T12:04:08","slug":"javascript-replace","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/javascript-replace\/","title":{"rendered":"JavaScript Replace(): A Step-By-Step Guide"},"content":{"rendered":"\n<p><em>To replace text in a JavaScript string the <code>replace()<\/code> function is used. The <code>replace()<\/code> function takes two arguments, the substring to be replaced and the new string that will take its place. Regex(p) can also be used to replace text in a string. <\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Replacing text within a string is a common operation in any programming language. For example, you may want to remove certain symbols from a string to make sure your program will work.<\/p>\n\n\n\n<p>Whatever the reason, knowing how to replace text in a <a href=\"https:\/\/careerkarma.com\/blog\/javascript-string-contains\/\">JavaScript string<\/a> can be useful.<\/p>\n\n\n\n<p>In this guide, we\u2019re going to break down the JavaScript string <em>replace()<\/em> function and explore how it can be used to amend the text.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Replace() Syntax<\/h2>\n\n\n\n<p>The JavaScript replace() method searches a string for a pattern or regular expression. If that pattern is found in the string, it is replaced with a specified value. replace() returns a new string. The original string is not changed.<\/p>\n\n\n\n<p>The replace() method accepts two arguments:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The pattern or regular expression for which replace() should search; and<\/li><li>A string which should replace any instances of the pattern you specified in the first argument.<\/li><\/ul>\n\n\n\n<p>Let&#8217;s take a look at this syntax:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var name = &quot;Pieter&quot;;\nconsole.log(name.replace(&quot;Pi&quot;, &quot;P&quot;));<\/pre><\/div>\n\n\n\n<p>Our first argument, &#8220;Pi&#8221;, is the pattern whose contents we want to replace. The second argument, &#8220;P&#8221;, is the text we want to replace our pattern with. So, our code replaces &#8220;Pi&#8221; with &#8220;P&#8221;.<\/p>\n\n\n\n<p>Our code prints &#8220;Peter&#8221; to the <a href=\"https:\/\/careerkarma.com\/blog\/javascript-console\/\">JavaScript console<\/a>. Our output is a new string because strings cannot be modified in JavaScript. They are immutable.<\/p>\n\n\n\n<p>The replace() method is added to the end of our string. You should not specify the string from which you want to replace values. Only the pattern for which you want to search and the text which should replace any instances of that pattern are accepted arguments. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">replace() JavaScript Example<\/h2>\n\n\n\n<p>Let\u2019s say, for example, you want to replace the word <em>interesting<\/em> with <em>intriguing<\/em> in a string. How would you do that? We could employ the use of the replace() method:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var ourInterestingString = &quot;This string is interesting.&quot;;\nvar ourIntriguingString = ourInterestingString.replace(&quot;interesting&quot;, &quot;intriguing&quot;);\nconsole.log(ourIntriguingString);<\/pre><\/div>\n\n\n\n<p>Our code returns a new string which is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&quot;This string is intriguing.&quot;<\/pre><\/div>\n\n\n\n<p>On the first line, we declare a <a href=\"https:\/\/careerkarma.com\/blog\/javascript-variables\/\">JavaScript variable<\/a> called <em>ourInterestingString<\/em>. This variable contains the value <em>This string is interesting<\/em>. On the next line, we replace the word <em>interesting<\/em> with <em>intriguing<\/em>, using the JavaScript <em>string replace()<\/em> method.<\/p>\n\n\n\n<p>We can see that the word &#8220;interesting&#8221; has been replaced with &#8220;intriguing&#8221; in our string.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Replace Multiple Substrings<\/h2>\n\n\n\n<p>If we want to replace multiple parts of our string, we can do that by chaining our <em>replace()<\/em> functions. Chaining means that we place multiple replace() statements after one another. Here\u2019s an example:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var ourInterestingString = &quot;This string is interesting.&quot;;\nvar ourNewString = ourInterestingString\n    .replace(&quot;This&quot;, &quot;Our&quot;)\n    .replace(&quot;string&quot;, &quot;code&quot;)\n    .replace(&quot;interesting.&quot;, &quot;amazing!&quot;);\n\nconsole.log(ourNewString);<\/pre><\/div>\n\n\n\n<p>Our code returns the following:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&quot;Our code is amazing!&quot;<\/pre><\/div>\n\n\n\n<p>Our code replaces all occurrences of the words &#8220;<em>This&#8221;<\/em>, &#8220;<em>string&#8221;<\/em>, and &#8220;<em>interesting&#8221;<\/em>, with the words &#8220;<em>Our&#8221;<\/em>, &#8220;<em>code&#8221;<\/em>, &#8220;<em>amazing!&#8221;,<\/em> respectively. Then it substitutes three words with three others in our string using the <em>replace()<\/em> function.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript String replace() Using Regex<\/h2>\n\n\n\n<p><em>Regular expression<\/em>, or <em>regex(p)<\/em>, defines a search pattern. When you\u2019re looking to find or replace characters within a string, using regex can be useful. Regexp objects give us more control over our <em>replace()<\/em> function, so we can do more exciting replacements.<\/p>\n\n\n\n<p>Here\u2019s an example of using regex to replace the letter <em>e<\/em> with the letter <em>f<\/em>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var ourInterestingString = \u201cThis string is interesting.\u201d;\nvar ourNewString = ourInterestingString\n\t.replace(\u201cThis\u201d, \u201cOur\u201d)\n\t.replace(\u201cstring\u201d, \u201ccode\u201d)\n\t.replace(\u201cinteresting.\u201d, \u201camazing!);\n\nconsole.log(ourNewString);<\/pre><\/div>\n\n\n\n<p>The output for our code is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&quot;This string is interesting.&quot;<\/pre><\/div>\n\n\n\n<p>Our code first declares the variable <em>ourInterestingString<\/em>, and assigns it the value <em>This string is interesting<\/em>. Then, our code replaces every <em>e<\/em> throughout the string with the letter <em>f<\/em>, and the function returns our new string.<\/p>\n\n\n\n<p>We use the <em>\/e\/g\/<\/em> regex expression to do this. This pattern will replace every <em>e<\/em> that comes up throughout the whole string (which is what the <em>g<\/em> signifies).&nbsp;<\/p>\n\n\n\n<p>If you\u2019re looking to learn more about regex, check out <a href=\"http:\/\/regexr.com\/\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\">Regexr<\/a>, which allows you to easily try out different expressions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>The JavaScript <em>replace()<\/em> function allows us to replace one part of a string with another and return the newly modified string. The <em>Regex()<\/em> function allows us to do the same thing but with greater control.<\/p>\n\n\n\n<p>In this tutorial, we broke down how to use the JavaScript <em>replace()<\/em> function. We also discussed how regex could be used to perform more advanced replace functions on a string.<\/p>\n\n\n\n<p>To learn more about how to code in the JavaScript programming language, read our <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-javascript\/\">How to Learn JavaScript guide<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"To replace text in a JavaScript string the replace() function is used. The replace() function takes two arguments, the substring to be replaced and the new string that will take its place. Regex(p) can also be used to replace text in a string. Replacing text within a string is a common operation in any programming&hellip;","protected":false},"author":240,"featured_media":12338,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11933],"tags":[12687],"class_list":{"0":"post-11964","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-javascript","8":"tag-tutorial"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"JavaScript","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>JavaScript Replace(): A Step-By-Step Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"The JavaScript replace function makes it easy to replace text within a string. Learn how to use the replace function in this article.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/javascript-replace\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Replace(): A Step-By-Step Guide\" \/>\n<meta property=\"og:description\" content=\"The JavaScript replace function makes it easy to replace text within a string. Learn how to use the replace function in this article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/javascript-replace\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-18T00:39:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:04:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-replace-text.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-replace\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-replace\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"JavaScript Replace(): A Step-By-Step Guide\",\"datePublished\":\"2020-11-18T00:39:40+00:00\",\"dateModified\":\"2023-12-01T12:04:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-replace\/\"},\"wordCount\":725,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-replace\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-replace-text.jpg\",\"keywords\":[\"tutorial\"],\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-replace\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-replace\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/javascript-replace\/\",\"name\":\"JavaScript Replace(): A Step-By-Step Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-replace\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-replace\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-replace-text.jpg\",\"datePublished\":\"2020-11-18T00:39:40+00:00\",\"dateModified\":\"2023-12-01T12:04:08+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The JavaScript replace function makes it easy to replace text within a string. Learn how to use the replace function in this article.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-replace\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-replace\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-replace\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-replace-text.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-replace-text.jpg\",\"width\":1200,\"height\":675,\"caption\":\"JavaScript Replace Text\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-replace\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https:\/\/careerkarma.com\/blog\/javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Replace(): A Step-By-Step Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JavaScript Replace(): A Step-By-Step Guide | Career Karma","description":"The JavaScript replace function makes it easy to replace text within a string. Learn how to use the replace function in this article.","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:\/\/careerkarma.com\/blog\/javascript-replace\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Replace(): A Step-By-Step Guide","og_description":"The JavaScript replace function makes it easy to replace text within a string. Learn how to use the replace function in this article.","og_url":"https:\/\/careerkarma.com\/blog\/javascript-replace\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-11-18T00:39:40+00:00","article_modified_time":"2023-12-01T12:04:08+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-replace-text.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/javascript-replace\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-replace\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"JavaScript Replace(): A Step-By-Step Guide","datePublished":"2020-11-18T00:39:40+00:00","dateModified":"2023-12-01T12:04:08+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-replace\/"},"wordCount":725,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-replace\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-replace-text.jpg","keywords":["tutorial"],"articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/javascript-replace\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/javascript-replace\/","url":"https:\/\/careerkarma.com\/blog\/javascript-replace\/","name":"JavaScript Replace(): A Step-By-Step Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-replace\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-replace\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-replace-text.jpg","datePublished":"2020-11-18T00:39:40+00:00","dateModified":"2023-12-01T12:04:08+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The JavaScript replace function makes it easy to replace text within a string. Learn how to use the replace function in this article.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-replace\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/javascript-replace\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/javascript-replace\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-replace-text.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-replace-text.jpg","width":1200,"height":675,"caption":"JavaScript Replace Text"},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/javascript-replace\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JavaScript","item":"https:\/\/careerkarma.com\/blog\/javascript\/"},{"@type":"ListItem","position":3,"name":"JavaScript Replace(): A Step-By-Step Guide"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/11964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=11964"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/11964\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12338"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=11964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=11964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=11964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}