{"id":329561,"date":"2024-05-24T22:40:29","date_gmt":"2024-05-24T22:40:29","guid":{"rendered":"https:\/\/www.baeldung.com\/java-extract-text-between-parentheses"},"modified":"2024-05-24T22:40:29","modified_gmt":"2024-05-24T22:40:29","slug":"extracting-text-between-parentheses-in-java","status":"publish","type":"post","link":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/2024\/05\/24\/extracting-text-between-parentheses-in-java\/","title":{"rendered":"Extracting Text Between Parentheses in Java"},"content":{"rendered":"<p class=\"syndicated-attribution\"><meta name= \\\"keywords \\\" content= \\\"\u96fb\u5b50\u8a08\u7b97\u6a5f, \u6559\u80b2, IT \u96fb\u8166\u73ed,\u96fb\u8166\u88dc\u7fd2\uff0c \u96fb\u8166\u73ed\uff0c \u5bb6\u6559\uff0c \u79c1\u4eba\u8001\u5e2b\uff0c \u8cc7\u8a0a\u6280\u8853\uff0c \u7a0b\u5e8f\u8a2d\u8a08\uff0c \u96fb\u5b50\u8a08\u7b97\u6a5f\uff0c \u904a\u6232\uff0c \u860b\u679c\uff0c \u96fb\u5f71\uff0c \u8a08\u7b97\u6a5f\uff0c\u7de8\u78bc\uff0c Java\uff0c C\/C++\uff0c JavaScript\uff0c PHP\uff0c HTML\uff0c CSS\uff0c MySQL\uff0c mobile\uff0c Android\uff0c \u52d5\u6f2b\uff0c Python\uff0c teacher\uff0c \u88dc\u7fd2\uff0c \u96fb\u8166\u88dc\u7fd2 \u8cc7\u8a0a, \u7535\u5b50\u8ba1\u7b97\u673a, IT ,Game, apple, movie, Computer,student,Java,\u6559\u80b2, ,\u5b66\u751f, \u5b66\u4e60, learn, \u6559\u5b66,  Android, apple,anime, animation, \u4fe1\u606f\u6280\u672f, \u7a0b\u5e8f\u8bbe\u8ba1, \u79fb\u52a8\u7535\u8bdd, \u8cc7\u8a0a\u79d1\u6280,Game, Jeu, Juego,Call Of Duty ,\u4f7f\u547d\u53ec\u559a , \u6e38\u620f, \u7535\u5b50\u6e38\u620f,, \u591a\u4eba\u7535\u5b50\u6e38\u620f, \u7f51\u7edc\u6e38\u620f\uff0conline\uff0conline game, \u624b\u673a\u6e38\u620f, mobile \\\"><\/p>\n<p><img src=\"https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-4-Featured-1024x536.png\" class=\"webfeedsFeaturedVisual wp-post-image\" alt=\"\" style=\"float: left; margin-right: 5px;\" decoding=\"async\" srcset=\"https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-4-Featured-1024x536.png 1024w, https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-4-Featured-300x157.png 300w, https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-4-Featured-768x402.png 768w, https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-4-Featured-100x52.png 100w, https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-4-Featured.png 1200w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/p>\n<h2 id=\"bd-overview\" data-id=\"overview\">1. Overview<\/h2>\n<div class=\"bd-anchor\" id=\"overview\"><\/div>\n<p>When we code in Java, there are many scenarios where we need to extract text enclosed within parentheses. Understanding how to retrieve the text between parentheses is an essential skill.<\/p>\n<p>In this tutorial, we&#8217;ll explore different methods to achieve this, focusing on <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/regular-expressions-java\">regular expressions<\/a> and some popular external libraries.<\/p>\n<h2 id=\"bd-introduction-to-the-problem\" data-id=\"introduction-to-the-problem\">2. Introduction to the Problem<\/h2>\n<div class=\"bd-anchor\" id=\"introduction-to-the-problem\"><\/div>\n<p>When our input contains only one pair of parentheses, we can extract the content between them using two <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/string\/replace-all\"><em>replaceAll()<\/em><\/a> method calls:<\/p>\n<pre><code class=\"language-java\">String myString = &quot;a b c (d e f) x y z&quot;;\r\n \r\nString result = myString.replaceAll(&quot;.*[(]&quot;, &quot;&quot;)\r\n  .replaceAll(&quot;[)].*&quot;, &quot;&quot;);\r\nassertEquals(&quot;d e f&quot;, result);<\/code><\/pre>\n<p>As the example above shows, <strong>the first <em>replaceAll()<\/em> removes everything until the &#8216;<em>(<\/em>&#8216; character. The second <em>replaceAll()<\/em> removes from &#8216;<em>)<\/em>&#8216; until the end of the <em>String<\/em>.\u00a0<\/strong>Thus, the rest is the text between &#8216;<em>(<\/em>&#8216; and &#8216;<em>)<\/em>&#8216;.<\/p>\n<p>However, this approach won&#8217;t work if our input has multiple &#8220;(&#8230;)&#8221; pairs. For example, let&#8217;s say we have another input:<\/p>\n<pre><code class=\"language-java\">static final String INPUT = &quot;a (b c) d (e f) x (y z)&quot;;<\/code><\/pre>\n<p>There are three pairs of parentheses in <em>INPUT<\/em>. Therefore, we expect to see extracted values in the following <em>String List<\/em>:<\/p>\n<pre><code class=\"language-java\">static final List&lt;String&gt; EXPECTED = List.of(&quot;b c&quot;, &quot;e f&quot;, &quot;y z&quot;);<\/code><\/pre>\n<p>Next, let&#8217;s see how to extract these <em>String<\/em> values from the <em>INPUT String<\/em>.<\/p>\n<p>For simplicity, we&#8217;ll leverage unit test assertions to verify whether each approach works as expected.<\/p>\n<h2 id=\"bd-greedy-vs-non-greedy-regex-pattern\" data-id=\"greedy-vs-non-greedy-regex-pattern\">3. Greedy vs Non-greedy Regex Pattern<\/h2>\n<div class=\"bd-anchor\" id=\"greedy-vs-non-greedy-regex-pattern\"><\/div>\n<p>Regular expressions (regex) provide a powerful and flexible method for pattern matching and text extraction. So, let&#8217;s use regex to do the job.<\/p>\n<p>Some of us may come up with this pattern to extract text between &#8216;(&#8216; and &#8216;)&#8217;: &#8220;<em>[(](.*)[)]<\/em>&#8220;. This pattern is pretty straightforward:<\/p>\n<ul>\n<li><em>[(]<\/em> and <em>[)]<\/em> matches the literal &#8216;(&#8216; and &#8216;)&#8217;<\/li>\n<li><strong><em>(.*)<\/em> is a capturing group that matches anything between &#8216;(&#8216; and &#8216;)&#8217;<\/strong><\/li>\n<\/ul>\n<p>Next, let&#8217;s check if this pattern solves the problem correctly:<\/p>\n<pre><code class=\"language-java\">String myRegex = &quot;[(](.*)[)]&quot;;\r\nMatcher myMatcher = Pattern.compile(myRegex)\r\n  .matcher(INPUT);\r\nList&lt;String&gt; myResult = new ArrayList&lt;&gt;();\r\nwhile (myMatcher.find()) {\r\n    myResult.add(myMatcher.group(1));\r\n}\r\nassertEquals(List.of(&quot;b c) d (e f) x (y z&quot;), myResult);<\/code><\/pre>\n<p>As the above test shows, using this pattern, we only have one <em>String<\/em> element in the result <em>List<\/em>: <em>&#8220;b c) d (e f) x (y z&#8221;.\u00a0<\/em><strong>This is because the &#8216;*&#8217; <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/regular-expressions-java#Quantifiers\">quantifier<\/a> applies a greedy match.\u00a0<\/strong>In other words, &#8220;<em>[(](.*)[)]<\/em>&#8221; matches the first &#8216;(&#8216; in the input and then everything up to the last &#8216;)&#8217; character,<strong> even if the content includes other &#8220;(&#8230;)&#8221; pairs<\/strong><b>.<\/b><\/p>\n<p>This isn&#8217;t what we expected. To solve the problem, we need non-greedy matching, which means the pattern must match each &#8220;(&#8230;)&#8221; pair.<\/p>\n<p><strong>To make the &#8216;*&#8217; quantifier non-greedy, we can add a question mark &#8216;?&#8217; after it: &#8220;<em>[(](*?)[)]<\/em>&#8220;.<\/strong><\/p>\n<p>Next, let&#8217;s test if this pattern can extract the expected <em>String<\/em> elements:<\/p>\n<pre><code class=\"language-java\">String regex = &quot;[(](.*?)[)]&quot;;\r\nList&lt;String&gt; result = new ArrayList&lt;&gt;();\r\nMatcher matcher = Pattern.compile(regex)\r\n  .matcher(INPUT);\r\nwhile (matcher.find()) {\r\n    result.add(matcher.group(1));\r\n}\r\nassertEquals(EXPECTED, result);<\/code><\/pre>\n<p>As we can see, the non-greedy regex pattern &#8220;<em>[(](.*?)[)]<\/em>&#8221; does the job.<\/p>\n<h2 id=\"bd-using-the-negated-character-class\" data-id=\"using-the-negated-character-class\">4. Using the Negated Character Class<\/h2>\n<div class=\"bd-anchor\" id=\"using-the-negated-character-class\"><\/div>\n<p>Apart from using the non-greedy quantifier (<em>*?<\/em>), <strong>we can also solve the problem using regex&#8217;s negated character class<\/strong>:<\/p>\n<pre><code class=\"language-java\">String regex = &quot;[(]([^)]*)&quot;;\r\nList&lt;String&gt; result = new ArrayList&lt;&gt;();\r\nMatcher matcher = Pattern.compile(regex)\r\n  .matcher(INPUT);\r\nwhile (matcher.find()) {\r\n    result.add(matcher.group(1));\r\n}\r\nassertEquals(EXPECTED, result);<\/code><\/pre>\n<p>As the code shows, our regex pattern to extract texts between parentheses is &#8220;<em>[(]([^)]*)<\/em>&#8220;. Let&#8217;s break it down to understand how it works:<\/p>\n<ul>\n<li><em>[(]<\/em> &#8211; Matches the literal &#8216;(&#8216; character<\/li>\n<li><em>[^)]*<\/em> &#8211; Matches any characters if it isn&#8217;t &#8216;)&#8217;; <strong>As it follows <em>[(]<\/em>, it only matches characters inside the parentheses.<\/strong><\/li>\n<li><em>([^)]*)<\/em> &#8211; We create <strong>a capturing group to extract the text between parentheses<\/strong> without including any opening or closing parenthesis.<\/li>\n<\/ul>\n<p>Alternatively, we can replace the &#8220;<em>[(]<\/em>&#8221;\u00a0character class with a positive <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/java-regex-lookahead-lookbehind#positive-lookbehind\">lookbehind<\/a> assertion &#8220;<em>(?&lt;=[(])<\/em>&#8220;. <strong>Lookbehind assertions allow us to match a group of characters only if a specified pattern precedes them.<\/strong> In this example, <em>(?&lt;=[(])<\/em> asserts that what immediately precedes the current position is an opening parenthesis &#8216;(&#8216;:<\/p>\n<pre><code class=\"language-java\">String regex = &quot;(?&lt;=[(])[^)]*&quot;;\r\nList&lt;String&gt; result = new ArrayList&lt;&gt;();\r\nMatcher matcher = Pattern.compile(regex)\r\n    .matcher(INPUT);\r\nwhile (matcher.find()) {\r\n    result.add(matcher.group());\r\n}\r\nassertEquals(EXPECTED, result);<\/code><\/pre>\n<p>It&#8217;s worth noting that <strong>since <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/java-regex-lookahead-lookbehind\">lookaround<\/a> is a zero-width assertion, the &#8216;(&#8216; character won&#8217;t be captured<\/strong>. Thus, we don&#8217;t need to create a capturing group to extract the expected text.<\/p>\n<h2 id=\"bd-using-stringutils-from-apache-commons-lang-3\" data-id=\"using-stringutils-from-apache-commons-lang-3\">5. Using <em>StringUtils<\/em> From Apache Commons Lang 3<\/h2>\n<div class=\"bd-anchor\" id=\"using-stringutils-from-apache-commons-lang-3\"><\/div>\n<p><a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/java-commons-lang-3\">Apache Commons Lang 3<\/a> is a widely used library. Its <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/string-processing-commons-lang\"><em>StringUtils<\/em><\/a> class offers a rich set of convenient methods for manipulating <em>String<\/em> values.<\/p>\n<p><strong>If we have only one pair of parentheses in the input, the <em>StringUtils.substringBetween()<\/em> method allows us to extract the <em>String<\/em> between them straightforwardly<\/strong>:<\/p>\n<pre><code class=\"language-java\">String myString = &quot;a b c (d e f) x y z&quot;;\r\n \r\nString result = StringUtils.substringBetween(myString, &quot;(&quot;, &quot;)&quot;);\r\nassertEquals(&quot;d e f&quot;, result);<\/code><\/pre>\n<p><strong>When the input has multiple pairs of parentheses, <em>StringUtils.substringsBetween()\u00a0<\/em>returns texts inside parentheses pairs in an array<\/strong>:<\/p>\n<pre><code class=\"language-java\">String[] results = StringUtils.substringsBetween(INPUT, &quot;(&quot;, &quot;)&quot;);\r\nassertArrayEquals(EXPECTED.toArray(), results);<\/code><\/pre>\n<p>If we&#8217;re using the Apache Commons Lang 3 library already in our project, these two methods are good choices for this task.<\/p>\n<h2 id=\"bd-conclusion\" data-id=\"conclusion\">6. Conclusion<\/h2>\n<div class=\"bd-anchor\" id=\"conclusion\"><\/div>\n<p>In this article, we&#8217;ve explored different ways to extract text between parentheses in Java. By understanding and applying these techniques, we can efficiently parse and process text in our Java applications.<\/p>\n<p>As always, the complete source code for the examples is available <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/github.com\/eugenp\/tutorials\/tree\/master\/core-java-modules\/core-java-regex-3\">over on GitHub<\/a>.<\/p>\n<p><Img align=\"left\" border=\"0\" height=\"1\" width=\"1\" alt=\"\" style=\"border:0;float:left;margin:0;padding:0;width:1px!important;height:1px!important;\" hspace=\"0\" src=\"https:\/\/feeds.feedblitz.com\/~\/i\/897538343\/0\/baeldung\"><\/p>\n<div style=\"clear:both;padding-top:0.2em;\"><a title=\"Like on Facebook\" href=\"https:\/\/feeds.feedblitz.com\/_\/28\/897538343\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/fblike20.png\" style=\"border:0;margin:0;padding:0;\"><\/a>&#160;<a title=\"Pin it!\" href=\"https:\/\/feeds.feedblitz.com\/_\/29\/897538343\/baeldung,https%3A%2F%2Fwww.baeldung.com%2Fwp-content%2Fuploads%2F2021%2F09%2FJava-4-Featured-1024x536.png\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/pinterest20.png\" style=\"border:0;margin:0;padding:0;\"><\/a>&#160;<a title=\"Post to X.com\" href=\"https:\/\/feeds.feedblitz.com\/_\/24\/897538343\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/x.png\" style=\"border:0;margin:0;padding:0;\"><\/a>&#160;<a title=\"Subscribe by email\" href=\"https:\/\/feeds.feedblitz.com\/_\/19\/897538343\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/email20.png\" style=\"border:0;margin:0;padding:0;\"><\/a>&#160;<a title=\"Subscribe by RSS\" href=\"https:\/\/feeds.feedblitz.com\/_\/20\/897538343\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/rss20.png\" style=\"border:0;margin:0;padding:0;\"><\/a>&#160;<a rel=\"NOFOLLOW\" title=\"View Comments\" href=\"https:\/\/www.baeldung.com\/java-get-text-between-parentheses#respond\"><img decoding=\"async\" height=\"20\" style=\"border:0;margin:0;padding:0;\" src=\"https:\/\/assets.feedblitz.com\/i\/comments20.png\"><\/a>&#160;<a title=\"Follow Comments via RSS\" href=\"https:\/\/www.baeldung.com\/java-get-text-between-parentheses\/feed\"><img decoding=\"async\" height=\"20\" style=\"border:0;margin:0;padding:0;\" src=\"https:\/\/assets.feedblitz.com\/i\/commentsrss20.png\"><\/a>&#160;<\/div>\n\n<p class=\"syndicated-attribution\"><figure class= \\\"wp-block-image alignnone \\\"><img src= \\\"http:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-content\/uploads\/2016\/05\/logo2-2.png\\\" alt=\\\"IT\u96fb\u8166\u88dc\u7fd2 java\u88dc\u7fd2 \u70ba\u5927\u5bb6\u914d\u5c0d\u96fb\u8166\u88dc\u7fd2,IT freelance, \u79c1\u4eba\u8001\u5e2b, PHP\u88dc\u7fd2,CSS\u88dc\u7fd2,XML,Java\u88dc\u7fd2,MySQL\u88dc\u7fd2,graphic design\u88dc\u7fd2,\u4e2d\u5c0f\u5b78ICT\u88dc\u7fd2,\u4e00\u5c0d\u4e00\u79c1\u4eba\u88dc\u7fd2\u548cFreelance\u81ea\u7531\u5de5\u4f5c\u914d\u5c0d\u3002\\\"\/><figcaption>\u7acb\u523b\u8a3b\u518a\u53ca\u5831\u540d\u96fb\u8166\u88dc\u7fd2\u8ab2\u7a0b\u5427!<\/figcaption><\/figure>\r\n<\/br>Find A Teacher Form:\r\n<\/br>https:\/\/docs.google.com\/forms\/d\/1vREBnX5n262umf4wU5U2pyTwvk9O-JrAgblA-wH9GFQ\/viewform?edit_requested=true#responses\r\n<\/br><\/br>Email:\r\n<\/br>public1989two@gmail.com<br><br><br><br><br><br><br>\r\n<a href=www.itsec.hk style=color:#FFFFFF;>www.itsec.hk<\/a><br>\r\n<a href=\\\"www.itsec.vip\\\" style=color:#FFFFFF;>www.itsec.vip<\/a><br>\r\n<a href=\\\"www.itseceu.uk\\\" style=color:#FFFFFF;>www.itseceu.uk<\/a><br><\/p>","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p><img decoding=\"async\" src=\"https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-4-Featured-1024x536.png\" class=\"webfeedsFeaturedVisual wp-post-image\" alt=\"\"><\/p>\n<p>Learn how to use regular expressions to extract text between parentheses in Java.<\/p>\n<div><a title=\"Like on Facebook\" href=\"https:\/\/feeds.feedblitz.com\/_\/28\/897538343\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/fblike20.png\"><\/a>\u00a0<a title=\"Pin it!\" href=\"https:\/\/feeds.feedblitz.com\/_\/29\/897538343\/baeldung,https%3A%2F%2Fwww.baeldung.com%2Fwp-content%2Fuploads%2F2021%2F09%2FJava-4-Featured-1024x536.png\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/pinterest20.png\"><\/a>\u00a0<a title=\"Post to X.com\" href=\"https:\/\/feeds.feedblitz.com\/_\/24\/897538343\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/x.png\"><\/a>\u00a0<a title=\"Subscribe by email\" href=\"https:\/\/feeds.feedblitz.com\/_\/19\/897538343\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/email20.png\"><\/a>\u00a0<a title=\"Subscribe by RSS\" href=\"https:\/\/feeds.feedblitz.com\/_\/20\/897538343\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/rss20.png\"><\/a>\u00a0<a rel=\"NOFOLLOW\" title=\"View Comments\" href=\"https:\/\/www.baeldung.com\/java-get-text-between-parentheses#respond\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/comments20.png\"><\/a>\u00a0<a title=\"Follow Comments via RSS\" href=\"https:\/\/www.baeldung.com\/java-get-text-between-parentheses\/feed\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/commentsrss20.png\"><\/a>\u00a0<\/div>\n<\/div>","protected":false},"author":915,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Extracting Text Between Parentheses in Java - ITTeacherITFreelance.hk","description":"Learn how to use regular expressions to extract text between parentheses in Java. \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0"},"footnotes":""},"categories":[6,1307],"tags":[],"_links":{"self":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/329561"}],"collection":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/915"}],"replies":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=329561"}],"version-history":[{"count":1,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/329561\/revisions"}],"predecessor-version":[{"id":329562,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/329561\/revisions\/329562"}],"wp:attachment":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=329561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=329561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=329561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}