{"id":25528,"date":"2025-07-07T21:47:40","date_gmt":"2025-07-07T18:47:40","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/"},"modified":"2025-07-07T21:47:40","modified_gmt":"2025-07-07T18:47:40","slug":"powershell-how-to-extract-text-between-two-strings-ceviri","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/","title":{"rendered":"PowerShell: How to Extract Text Between Two Strings (\u00c7eviri)"},"content":{"rendered":"<p># PowerShell: \u0130ki Dize Aras\u0131ndaki Metni \u00c7\u0131karma<\/p>\n<p>Log dosyalar\u0131n\u0131 analiz etmekten, web sayfalar\u0131ndan veri \u00e7ekmeye kadar bir\u00e7ok senaryoda, iki belirli dize aras\u0131nda kalan metni ay\u0131klama ihtiyac\u0131 duyabilirsiniz.  PowerShell, bu g\u00f6revi ger\u00e7ekle\u015ftirmek i\u00e7in g\u00fc\u00e7l\u00fc ve esnek ara\u00e7lar sunar. Bu makalede, PowerShell kullanarak iki dize aras\u0131na s\u0131k\u0131\u015fm\u0131\u015f metni ad\u0131m ad\u0131m nas\u0131l \u00e7\u0131karaca\u011f\u0131n\u0131z\u0131, ipu\u00e7lar\u0131n\u0131, p\u00fcf noktalar\u0131n\u0131 ve performans optimizasyonunu ele alaca\u011f\u0131z.  Farkl\u0131 karma\u015f\u0131kl\u0131k seviyelerine uygun \u00f6rneklerle, PowerShell becerilerinizi bir \u00fcst seviyeye ta\u015f\u0131man\u0131za yard\u0131mc\u0131 olaca\u011f\u0131z.<\/p>\n<p><strong>PowerShell&#8217;de \u0130ki Dize Aras\u0131ndaki Metni Nas\u0131l \u00c7\u0131kar\u0131r\u0131m? (Yeni Ba\u015flayanlar i\u00e7in)<\/strong><\/p>\n<p>PowerShell&#8217;de iki dize aras\u0131 metin \u00e7\u0131karma i\u015flemi, temel olarak <code class=\"language-\">-match<\/code> operat\u00f6r\u00fc ve yakalama gruplar\u0131 (<code class=\"language-\">(...)<\/code>) kullan\u0131larak ger\u00e7ekle\u015ftirilir.  <code class=\"language-\">-match<\/code> operat\u00f6r\u00fc, belirli bir kal\u0131pla e\u015fle\u015fen metni bulur.  Parantezler (<code class=\"language-\">(...)<\/code>), e\u015fle\u015fen metnin belirli b\u00f6l\u00fcmlerini yakalaman\u0131za olanak tan\u0131r.<\/p>\n<p>\u00d6rne\u011fin, &#8220;Ba\u015flang\u0131\u00e7: <strong>Bu metni \u00e7\u0131karmak istiyoruz<\/strong> Biti\u015f&#8221; dizisinden &#8220;Bu metni \u00e7\u0131karmak istiyoruz&#8221; k\u0131sm\u0131n\u0131 ay\u0131klamak istedi\u011fimizi varsayal\u0131m.  A\u015fa\u011f\u0131daki komutu kullanabiliriz:<\/p>\n<pre class=\"language-powershell\"><code>$text = &quot;Ba\u015flang\u0131\u00e7: Bu metni \u00e7\u0131karmak istiyoruz Biti\u015f&quot;\nif ($text -match &quot;Ba\u015flang\u0131\u00e7: (.*?) Biti\u015f&quot;) {\n  $extractedText = $Matches[1]\n  Write-Host &quot;\u00c7\u0131kar\u0131lan metin: $extractedText&quot;\n}<\/code><\/pre>\n<p>Bu kodda, <code class=\"language-\">(.*?)<\/code> ifadesi, &#8220;Ba\u015flang\u0131\u00e7:&#8221; ve &#8220;Biti\u015f&#8221; dizeleri aras\u0131ndaki herhangi bir karakter dizisini yakalar. <code class=\"language-\">?<\/code> i\u015fareti, en k\u0131sa e\u015fle\u015fmeyi bulmay\u0131 sa\u011flar (a\u00e7g\u00f6zl\u00fc olmayan e\u015fle\u015fme). <code class=\"language-\">$Matches[1]<\/code>, yakalanan ilk grubun (parantez i\u00e7indeki k\u0131s\u0131m) i\u00e7eri\u011fini temsil eder.  <code class=\"language-\">if<\/code> blo\u011fu, e\u015fle\u015fme olup olmad\u0131\u011f\u0131n\u0131 kontrol eder.<\/p>\n<p><strong>Ger\u00e7ek Hayat \u00d6rne\u011fi: Log Dosyalar\u0131ndan Hata Mesajlar\u0131n\u0131 \u00c7\u0131karma (Orta Seviye)<\/strong><\/p>\n<p>Bir log dosyas\u0131nda, &#8220;Hata:&#8221; ile &#8220;Son&#8221; kelimeleri aras\u0131nda kalan hata mesajlar\u0131n\u0131 ay\u0131klamak istedi\u011fimizi d\u00fc\u015f\u00fcnelim.  Log dosyas\u0131n\u0131n i\u00e7eri\u011fi \u015f\u00f6yle olsun:<\/p>\n<pre class=\"language-\"><code>2023-10-27 10:00:00 Bilgi: Sistem ba\u015flat\u0131ld\u0131.\n2023-10-27 10:05:00 Hata: Ba\u011flant\u0131 hatas\u0131 olu\u015ftu. L\u00fctfen ba\u011flant\u0131n\u0131z\u0131 kontrol edin. Son\n2023-10-27 10:10:00 Uyar\u0131: D\u00fc\u015f\u00fck disk alan\u0131.\n2023-10-27 10:15:00 Hata: Dosya bulunamad\u0131. Son<\/code><\/pre>\n<p>Bu durumda, a\u015fa\u011f\u0131daki PowerShell komutunu kullanabiliriz:<\/p>\n<pre class=\"language-powershell\"><code>Get-Content -Path &quot;log.txt&quot; | ForEach-Object {\n  if ($_ -match &quot;Hata: (.*?) Son&quot;) {\n    Write-Host &quot;Hata Mesaj\u0131: $($Matches[1])&quot;\n  }\n}<\/code><\/pre>\n<p>Bu kod, <code class=\"language-\">Get-Content<\/code> ile log dosyas\u0131n\u0131 sat\u0131r sat\u0131r okur ve her sat\u0131r i\u00e7in <code class=\"language-\">-match<\/code> operat\u00f6r\u00fcn\u00fc kullanarak hata mesajlar\u0131n\u0131 ay\u0131klar.  Sonu\u00e7 olarak, her hata mesaj\u0131 ayr\u0131 bir sat\u0131rda yazd\u0131r\u0131l\u0131r.  Bu \u00f6rnek, ger\u00e7ek d\u00fcnya senaryolar\u0131nda metin ay\u0131klaman\u0131n nas\u0131l kullan\u0131labilece\u011fini g\u00f6stermektedir.  [Fatih Soysal&#8217;\u0131n blogunda](https:\/\/fatihsoysal.com) daha fazla log analizi \u00f6rne\u011fi bulabilirsiniz.<\/p>\n<p><strong>PowerShell&#8217;de Metin Ay\u0131klama Performans\u0131n\u0131 Nas\u0131l Optimize Ederim? (\u0130leri Seviye)<\/strong><\/p>\n<p>B\u00fcy\u00fck dosyalar \u00fczerinde \u00e7al\u0131\u015f\u0131rken, performans kritik bir fakt\u00f6r haline gelir.  <code class=\"language-\">-match<\/code> operat\u00f6r\u00fc, d\u00fczenli ifadeler kullan\u0131r ve bu da b\u00fcy\u00fck dosyalarda yava\u015flayabilir.  Performans\u0131 art\u0131rmak i\u00e7in \u015fu y\u00f6ntemleri kullanabiliriz:<\/p>\n<p>* <strong><code class=\"language-\">Select-String<\/code> kullan\u0131m\u0131:<\/strong>  <code class=\"language-\">Select-String<\/code> cmdlet&#8217;i,  <code class=\"language-\">-match<\/code> operat\u00f6r\u00fcnden genellikle daha h\u0131zl\u0131d\u0131r, \u00f6zellikle b\u00fcy\u00fck dosyalar i\u00e7in.<\/p>\n<pre class=\"language-powershell\"><code>Select-String -Path &quot;log.txt&quot; -Pattern &quot;Hata: (.*?) Son&quot; | ForEach-Object {\n  Write-Host &quot;Hata Mesaj\u0131: $($_.Matches.Groups[1].Value)&quot;\n}<\/code><\/pre>\n<p>* <strong>Regex Optimizasyonu:<\/strong>  D\u00fczenli ifadeyi optimize etmek, performans\u0131 \u00f6nemli \u00f6l\u00e7\u00fcde art\u0131rabilir. Gereksiz yakalama gruplar\u0131ndan ka\u00e7\u0131nmak ve daha spesifik kal\u0131plar kullanmak \u00f6nemlidir.<\/p>\n<p>* <strong>Paralel \u0130\u015fleme:<\/strong>  \u00c7ok \u00e7ekirdekli i\u015flemcilerden yararlanmak i\u00e7in <code class=\"language-\">Parallel.ForEach<\/code> kullanarak i\u015flemi paralelize edebiliriz. Bu, b\u00fcy\u00fck dosyalarda \u00f6nemli bir h\u0131z art\u0131\u015f\u0131 sa\u011flayabilir.<\/p>\n<p><strong>Karma\u015f\u0131k Senaryolar ve Edge Case&#8217;ler Nas\u0131l Ele Al\u0131n\u0131r?<\/strong><\/p>\n<p>Bazen, basit d\u00fczenli ifadeler yeterli olmayabilir. \u00d6rne\u011fin, ba\u015flang\u0131\u00e7 ve biti\u015f dizelerinin birden fazla kez g\u00f6r\u00fcnd\u00fc\u011f\u00fc durumlar olabilir.  Bu gibi durumlarda, daha karma\u015f\u0131k d\u00fczenli ifadeler veya alternatif y\u00f6ntemler kullanman\u0131z gerekebilir.  \u00d6rne\u011fin, belirli bir ba\u015flang\u0131\u00e7 ve biti\u015f dizisi aras\u0131ndaki *n.* \u00f6rne\u011fi ay\u0131klamak i\u00e7in daha geli\u015fmi\u015f regex tekniklerine ba\u015fvurman\u0131z gerekebilir.<\/p>\n<p><strong>PowerShell&#8217;de Alternatif Metin Ay\u0131klama Y\u00f6ntemleri<\/strong><\/p>\n<p><code class=\"language-\">-match<\/code> ve <code class=\"language-\">Select-String<\/code> d\u0131\u015f\u0131nda, PowerShell&#8217;de metin ay\u0131klama i\u00e7in di\u011fer y\u00f6ntemler de mevcuttur.  \u00d6rne\u011fin, <code class=\"language-\">Substring()<\/code> metodu, belirli indeksler aras\u0131 metni ay\u0131klamak i\u00e7in kullan\u0131labilir. Ancak bu y\u00f6ntem, ba\u015flang\u0131\u00e7 ve biti\u015f dizelerinin konumlar\u0131n\u0131n \u00f6nceden bilinmesini gerektirir ve daha az esnektir.<\/p>\n<p><strong>PowerShell ile XML ve JSON Verilerinden Metin \u00c7\u0131karma<\/strong><\/p>\n<p>PowerShell, XML ve JSON verileriyle de kolayca \u00e7al\u0131\u015fabilir.  Bu veri tiplerinden metin ay\u0131klamak i\u00e7in, ilgili cmdlet&#8217;leri (\u00f6rne\u011fin, <code class=\"language-\">Select-Xml<\/code>, <code class=\"language-\">ConvertFrom-Json<\/code>) ve nokta g\u00f6sterimi kullanarak istenen verileri se\u00e7ebilirsiniz.  Bu y\u00f6ntem, yap\u0131land\u0131r\u0131lm\u0131\u015f verilerden metin ay\u0131klamada daha temiz ve okunabilir bir yakla\u015f\u0131m sunar.<\/p>\n<p><strong>Sonu\u00e7<\/strong><\/p>\n<p>PowerShell, iki dize aras\u0131ndaki metni ay\u0131klamak i\u00e7in g\u00fc\u00e7l\u00fc ve esnek ara\u00e7lar sunmaktad\u0131r.  Bu makalede, temel tekniklerden ileri d\u00fczey optimizasyonlara kadar \u00e7e\u015fitli y\u00f6ntemleri ele ald\u0131k.  Do\u011fru y\u00f6ntemi se\u00e7mek, verilerin yap\u0131s\u0131 ve b\u00fcy\u00fckl\u00fc\u011f\u00fcne ba\u011fl\u0131d\u0131r.  Uygun teknikleri kullanarak, PowerShell&#8217;i log analizi, web scraping ve di\u011fer bir\u00e7ok g\u00f6revde verimli bir \u015fekilde kullanabilirsiniz.<\/p>\n<p><strong>S\u0131k\u00e7a Sorulan Sorular:<\/strong><\/p>\n<p>1. <strong><code class=\"language-\">-match<\/code> ve <code class=\"language-\">Select-String<\/code> aras\u0131ndaki fark nedir?<\/strong> <code class=\"language-\">-match<\/code>, d\u00fczenli ifadeler kullanarak metin e\u015fle\u015fmesi yapar ve <code class=\"language-\">$Matches<\/code> de\u011fi\u015fkenine e\u015fle\u015fen b\u00f6l\u00fcmleri kaydeder. <code class=\"language-\">Select-String<\/code>, daha h\u0131zl\u0131 ve daha verimlidir, \u00f6zellikle b\u00fcy\u00fck dosyalar i\u00e7in.<\/p>\n<p>2. <strong>A\u00e7g\u00f6zl\u00fc olmayan e\u015fle\u015fme (<code class=\"language-\">?<\/code>) nedir?<\/strong> A\u00e7g\u00f6zl\u00fc olmayan e\u015fle\u015fme, d\u00fczenli ifadelerde en k\u0131sa e\u015fle\u015fmeyi bulmay\u0131 sa\u011flar.  Bu, birden fazla e\u015fle\u015fme olas\u0131l\u0131\u011f\u0131 oldu\u011funda \u00f6nemlidir.<\/p>\n<p>3. <strong>B\u00fcy\u00fck dosyalar i\u00e7in performans\u0131 nas\u0131l daha da art\u0131rabilirim?<\/strong>  Paralel i\u015fleme, regex optimizasyonu ve daha verimli cmdlet&#8217;lerin kullan\u0131m\u0131 performans\u0131 \u00f6nemli \u00f6l\u00e7\u00fcde art\u0131rabilir.<\/p>\n<p>4. <strong>Ba\u015flang\u0131\u00e7 ve biti\u015f dizelerinin birden fazla kez g\u00f6r\u00fcnd\u00fc\u011f\u00fc durumlarda ne yapmal\u0131y\u0131m?<\/strong>  Daha karma\u015f\u0131k d\u00fczenli ifadeler veya alternatif y\u00f6ntemler kullanman\u0131z gerekebilir.<\/p>\n<p>5. <strong>PowerShell&#8217;de metin ay\u0131klama i\u00e7in ba\u015fka hangi y\u00f6ntemler mevcuttur?<\/strong> <code class=\"language-\">Substring()<\/code> metodu,  XML ve JSON verileri i\u00e7in ilgili cmdlet&#8217;ler ve nokta g\u00f6sterimi kullan\u0131labilir.<\/p>\n<p>Yazar: Fatih Soysal<\/p>\n","protected":false},"excerpt":{"rendered":"# PowerShell: \u0130ki Dize Aras\u0131ndaki Metni \u00c7\u0131karma Log dosyalar\u0131n\u0131 analiz etmekten, web sayfalar\u0131ndan veri \u00e7ekmeye kadar bir\u00e7ok senaryoda,&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1319],"tags":[],"class_list":{"0":"post-25528","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-powershell","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PowerShell: How to Extract Text Between Two Strings (\u00c7eviri)<\/title>\n<meta name=\"description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell: How to Extract Text Between Two Strings (\u00c7eviri)\" \/>\n<meta property=\"og:description\" content=\"Hi\u00e7bir etiketi bulunamad\u0131.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-07T18:47:40+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Soysal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Soysal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"PowerShell: How to Extract Text Between Two Strings (\u00c7eviri)\",\"datePublished\":\"2025-07-07T18:47:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/\"},\"wordCount\":943,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"articleSection\":[\"PowerShell\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/\",\"name\":\"PowerShell: How to Extract Text Between Two Strings (\u00c7eviri)\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-07-07T18:47:40+00:00\",\"description\":\"Hi\u00e7bir etiketi bulunamad\u0131.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell: How to Extract Text Between Two Strings (\u00c7eviri)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PowerShell: How to Extract Text Between Two Strings (\u00c7eviri)","description":"Hi\u00e7bir etiketi bulunamad\u0131.","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:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/","og_locale":"tr_TR","og_type":"article","og_title":"PowerShell: How to Extract Text Between Two Strings (\u00c7eviri)","og_description":"Hi\u00e7bir etiketi bulunamad\u0131.","og_url":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-07-07T18:47:40+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"5 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"PowerShell: How to Extract Text Between Two Strings (\u00c7eviri)","datePublished":"2025-07-07T18:47:40+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/"},"wordCount":943,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"articleSection":["PowerShell"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/","url":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/","name":"PowerShell: How to Extract Text Between Two Strings (\u00c7eviri)","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-07-07T18:47:40+00:00","description":"Hi\u00e7bir etiketi bulunamad\u0131.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/powershell-how-to-extract-text-between-two-strings-ceviri\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PowerShell: How to Extract Text Between Two Strings (\u00c7eviri)"}]},{"@type":"WebSite","@id":"https:\/\/fatihsoysal.com\/blog\/#website","url":"https:\/\/fatihsoysal.com\/blog\/","name":"Fatihsoysal.com","description":"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim","publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1","name":"Fatih Soysal","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","contentUrl":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","width":512,"height":512,"caption":"Fatih Soysal"},"logo":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/"},"description":"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.","url":"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/25528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/comments?post=25528"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/25528\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=25528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=25528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=25528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}